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

glen glen at pld-linux.org
Thu Sep 28 00:30:54 CEST 2006


Author: glen
Date: Thu Sep 28 00:30:52 2006
New Revision: 7820

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Relax fstab format when finding rootfs passno (allow comments at the end of line).

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Thu Sep 28 00:30:52 2006
@@ -286,8 +286,8 @@
 	else
 		# Obey the fs_passno setting for / (see fstab(5))
 		# - find the / entry
-		# - make sure we have 6 fields
-		_ROOTFS_PASSNO=$(awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 == "/" && NF == 6) { print $6}' /etc/fstab)
+		# - make sure we have at least 6 fields
+		_ROOTFS_PASSNO=$(awk '($1 !~ /^#/ && $2 == "/" && NF >= 6) { print $6}' /etc/fstab)
 	fi
 
 	_RUN_QUOTACHECK=0


More information about the pld-cvs-commit mailing list