aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index bcffb781..03651448 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -52,6 +52,11 @@ fi
action $"Mounting proc filesystem: " mount -n -t proc /proc /proc
+# Unmount the initrd, if necessary
+if grep -q /tmp/initrd /proc/mounts ; then
+ action $"Unmounting initrd: " umount /tmp/initrd
+fi
+
# Configure kernel parameters
action $"Configuring kernel parameters: " sysctl -e -p /etc/sysctl.conf