aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-06-20 20:35:31 +0000
committerBill Nottingham <notting@redhat.com>2001-06-20 20:35:31 +0000
commit4daca60e3712a0f1983f9909e1262b29f2c3ff83 (patch)
tree2be57f8800e90303bef3ee86edbef24ef8cdf2f0
parentda6e8d687728d041364e89448d585bbb914d898f (diff)
downloadinitscripts-4daca60e3712a0f1983f9909e1262b29f2c3ff83.tar
initscripts-4daca60e3712a0f1983f9909e1262b29f2c3ff83.tar.gz
initscripts-4daca60e3712a0f1983f9909e1262b29f2c3ff83.tar.bz2
initscripts-4daca60e3712a0f1983f9909e1262b29f2c3ff83.tar.xz
initscripts-4daca60e3712a0f1983f9909e1262b29f2c3ff83.zip
unmount initrd, if needed
-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