tag 548627 + patch thanks On Sun, 27 Sep 2009 20:43:13 +0200, Emile Carry wrote:
> With the new version of udev this morning, /lib/udev/vol_id was > removed and /usr/share/usbmount/usbmount was broken. > The new tool is /sbin/blkid but its output is different from the > output of /lib/udev/vol_id. I was also bitten by this bug. Find attached a quick patch that seems to work with /sbin/blkid. Cheers, gregor -- .''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/ `- NP: Rod Stewart
--- usbmount.orig 2009-10-01 21:15:34.000000000 +0200
+++ usbmount 2009-10-01 21:41:08.000000000 +0200
@@ -37,8 +37,8 @@
}
-# Test if /lib/udev/vol_id is executable.
-test -x /lib/udev/vol_id || { log err "cannot execute /lib/udev/vol_id"; exit
1; }
+# Test if /sbin/blkid is executable.
+test -x /sbin/blkid || { log err "cannot execute /sbin/blkid"; exit 1; }
# Default values for configuration variables.
ENABLED=1
@@ -105,10 +105,11 @@
# Test if the device contains a filesystem. If it doesn't, no
# further action is required, but calling vol_id has the side effect
# that the partition table is read and partition devices are created.
- elif /lib/udev/vol_id "$DEVNAME" | egrep -q
'^ID_FS_USAGE=(filesystem|disklabel)$'; then
+ # ? With /sbin/blkid too?
+ elif /sbin/blkid -p -o udev "$DEVNAME" | egrep -q
'^ID_FS_USAGE=(filesystem|disklabel)$'; then
log debug "$DEVNAME contains a filesystem or disklabel"
- fstype="`/lib/udev/vol_id -t \"$DEVNAME\"`"
+ fstype="`/sbin/blkid -s TYPE -o value \"$DEVNAME\"`"
log debug "$DEVNAME contains filesystem type $fstype"
# Test if the filesystem type is in the list of filesystem
signature.asc
Description: Digital signature

