[Lunar-commits] r18992 - moonbase/trunk/filesys/e2fsprogs/init.d
Auke Kok
sofar at lunar-linux.org
Thu Mar 2 17:58:41 UTC 2006
Author: sofar
Date: 2006-03-02 17:58:38 +0000 (Thu, 02 Mar 2006)
New Revision: 18992
Modified:
moonbase/trunk/filesys/e2fsprogs/init.d/mount
Log:
Bugfix: people who had all '0' fs_passno fields would get all their filesystems checked at every boot.
Modified: moonbase/trunk/filesys/e2fsprogs/init.d/mount
===================================================================
--- moonbase/trunk/filesys/e2fsprogs/init.d/mount 2006-03-02 17:18:02 UTC (rev 18991)
+++ moonbase/trunk/filesys/e2fsprogs/init.d/mount 2006-03-02 17:58:38 UTC (rev 18992)
@@ -214,11 +214,11 @@
fi
# check filesystems
- FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | tr -s '[:blank:]' | awk '{print $6}' | sort -n | grep -v -w 0)
+ FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | awk '($6>0){print$6}' | sort -n)
if [ -n "$FSCKLEVELS" ]; then
echo "Checking file systems:"
for FSCKLEVEL in $FSCKLEVELS; do
- for FS in $(sed 's/#.*$//g' /etc/fstab | tr -s '[:blank:]' | awk "(\$6==$FSCKLEVEL){print\$1}"); do
+ for FS in $(sed 's/#.*$//g' /etc/fstab | awk "(\$6==$FSCKLEVEL){print\$1}"); do
run_with_msg_and_exit_codes " * Checking $FS" "fsck -T -C -y -V $FORCE $FS" "0" "1" ""
if [ $? -ge 2 ]; then
More information about the Lunar-commits
mailing list