summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xappliance/init6
1 files changed, 4 insertions, 2 deletions
diff --git a/appliance/init b/appliance/init
index 52e46655..4461e302 100755
--- a/appliance/init
+++ b/appliance/init
@@ -12,9 +12,11 @@ export RUNLEVEL PREVLEVEL
mkdir -p /sysroot
-rm -f /proc; mkdir /proc
+if [ ! -d /proc ]; then rm -f /proc; fi
+mkdir -p /proc
mount -t proc /proc /proc
-rm -f /sys; mkdir /sys
+if [ ! -d /sys ]; then rm -f /sys; fi
+mkdir -p /sys
mount -t sysfs /sys /sys
mkdir -p /run/lock