rc-scripts/trunk/rc.d/rc.sysinit

glen cvs at pld-linux.org
Thu Feb 23 15:23:12 CET 2006


Author: glen
Date: Thu Feb 23 15:23:07 2006
New Revision: 7004

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Ignore "rootfs" when setting _ROOTFS_TYPE.

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Thu Feb 23 15:23:07 2006
@@ -286,7 +286,7 @@
 	fi
 
 	_RUN_QUOTACHECK=0
-	_ROOTFS_TYPE=$(grep " / " /proc/mounts 2>/dev/null | awk '{ print $3 }')
+	_ROOTFS_TYPE=$(awk '$2 == "/" && $3 != "rootfs" { print $3 }' /proc/mounts 2>/dev/null)
 
 	if [ -z "$fastboot" -a "$_ROOTFS_TYPE" != "nfs" -a "$_ROOTFS_TYPE" != "romfs" ]; then
 		show "Checking root filesystem"; started


More information about the pld-cvs-commit mailing list