aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 03651448..01799ce6 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -53,8 +53,9 @@ 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
+if grep -q /boot/initrd /proc/mounts ; then
+ action $"Unmounting initrd: " umount /boot/initrd
+ /sbin/blockdev --flushbufs /dev/ram0 >/dev/null 2>&1
fi
# Configure kernel parameters