Package: xfsprogs
Version: 2.9.5-1
Severity: important
File: /sbin/fsck.xfs
Tags: patch
It is not uncommon for an administrator to set FSCKFIX=yes in /etc/default/rcS
in order to allow a remote machine to boot. In its current version the no-op
script /sbin/fsck.xfs does not recognize the -y option leading to a misleading
warning upon reboot:
Fri Feb 1 06:28:51 2008: Checking all file systems.
Fri Feb 1 06:28:51 2008: [/sbin/fsck.xfs (1) -- /space] fsck.xfs -y
/dev/mapper/raid10-space
Fri Feb 1 06:28:51 2008: If you wish to check the consistency of an XFS
filesystem or
Fri Feb 1 06:28:51 2008: repair a damaged filesystem, see xfs_check(8) and
xfs_repair(8).
Fri Feb 1 06:28:51 2008: Done checking file systems.
The attached to line patch fixes this.
Cheers!
Peter
--- /sbin/fsck.xfs.orig 2008-02-03 15:34:59.000000000 +0100
+++ /sbin/fsck.xfs 2008-02-03 15:37:01.000000000 +0100
@@ -4,10 +4,10 @@
#
AUTO=false
-while getopts ":aA" c
+while getopts ":aAy" c
do
case $c in
- a|A) AUTO=true;;
+ a|A|y) AUTO=true;;
esac
done
eval DEV=\${$#}