From 4daca60e3712a0f1983f9909e1262b29f2c3ff83 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 20 Jun 2001 20:35:31 +0000 Subject: unmount initrd, if needed --- rc.d/rc.sysinit | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1