rc-scripts/trunk/rc.d/rc.sysinit
baggins
cvs at pld-linux.org
Sat Nov 19 00:44:52 CET 2005
Author: baggins
Date: Sat Nov 19 00:44:48 2005
New Revision: 6541
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
- don't clear mtab on vserver guest
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Sat Nov 19 00:44:48 2005
@@ -377,14 +377,14 @@
done
fi
-# Clear mtab
-:>/etc/mtab
-[ -f /etc/cryptomtab ] && :>/etc/cryptomtab
-
# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~ /etc/cryptomtab~ /etc/cryptomtab~~
if ! is_yes "$VSERVER"; then
+ # Clear mtab
+ :>/etc/mtab
+ [ -f /etc/cryptomtab ] && :>/etc/cryptomtab
+
# Enter root, /proc, /sys, devfs and other into mtab.
mount -f /
mount -f /proc
More information about the pld-cvs-commit
mailing list