summaryrefslogtreecommitdiffstats
path: root/inc/env.setup-sqfs-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'inc/env.setup-sqfs-base.sh')
-rwxr-xr-xinc/env.setup-sqfs-base.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/inc/env.setup-sqfs-base.sh b/inc/env.setup-sqfs-base.sh
index 8c87c6a..c217437 100755
--- a/inc/env.setup-sqfs-base.sh
+++ b/inc/env.setup-sqfs-base.sh
@@ -12,7 +12,9 @@ if [ ! -f .osib_unpacked ]; then
touch .osib_unpacked
fi
-rm run
+rm -f run var/cache var/log var/lock var/pcmcia var/run var/spool var/tmp
+
+mkdir -p run var/log/journal
tar xzf ${ROOT_DIR}/share/files/dev.tgz
@@ -47,3 +49,10 @@ if [ ! -f .osib_moved_bins ]; then
fi
ln -sf /usr/lib/systemd/systemd init
+
+if [ ! -f .osib_patched ]; then
+ for p in $(ls -1 ${ROOT_DIR}/share/patches/* | sort); do
+ patch -p1 < $p
+ done
+ touch .osib_patched
+fi