Hi Javier, the fix does not work (the SED=... is a workaround for one bug):
# SED=/bin/sed /usr/lib/tiger/systems/Linux/2/gen_mounts.orig local --CONFIG-- [con010c] Filesystem ext3,ext2 used by /dev/scsi/host0/bus0/target0/lun0/part1 is not recognised as a local filesystem The attached patch fixes both issues. I choose to move the fallback fs handling in the main part instead of replacing all the $1's with $fs in localfs() as it can be seen as a peculiarity of the mount output rather than the actual fs type. elmar -- .'"`. /"\ | :' : Elmar Hoffmann <[EMAIL PROTECTED]> ASCII Ribbon Campaign \ / `. `' GPG key available via pgp.net against HTML email X `- & vCards / \
--- systems/Linux/2/gen_mounts.orig 2005-04-18 16:16:04.800804310 +0200 +++ systems/Linux/2/gen_mounts 2005-04-18 16:18:43.944853954 +0200 @@ -73,9 +73,6 @@ # read the mount(5), fstab(5) or Documentation/filesystems in the Linux # kernel LOCAL=2 - fs=$1 - # Strip fallback filesystems - fs=`echo $fs | $SED -e 's/,.*$//'` # Valid local filesystems [ "$1" = "ext" ] && LOCAL=0 [ "$1" = "ext2" ] && LOCAL=0 @@ -143,13 +140,15 @@ # If run directly do this, just in case: [ -z "$GETFS" ] && GETFS=`which mount` -[ -z "$SED" ] && GETFS=`which sed` +[ -z "$SED" ] && SED=`which sed` [ -z "$BASENAME" ] && BASENAME=`which basename` $GETFS | while read fs o mtpoint t fstype opts do PRINT=1 + # Strip fallback filesystems + fstype=`echo $fstype | $SED -e 's/,.*$//'` [ "$CHKRO" = "rw" ] && { ronly "$opts" && PRINT=0; } [ "$LOCAL_ONLY" = "local" ] && { localfs "$fstype" "$fs" || PRINT=0; } [ "$PRINT" = "1" ] && {
signature.asc
Description: Digital signature