Package: initramfs-tools
Version: 0.96.1
Severity: wishlist
Tags: patch

Hi.

May I suggest to drop the code from get_fstype in 
/usr/share/initramfs-tools/scripts/functions
that uses vol_id.

AFAIK vol_id is no longer available in udev or any other Debian package,
so this is dead code.

Attached is a patch for this.


Cheers,
Chris.
--- /usr/share/initramfs-tools/scripts/functions        2010-06-08 
12:10:38.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/functions        2010-06-10 
14:50:25.822262987 +0200
@@ -285,13 +285,10 @@
        local FS FSTYPE FSSIZE RET
        FS="${1}"
 
-       # vol_id has a more complete list of file systems,
-       # but fstype is more robust
+       # blk_id has a more complete list of file systems, but fstype is more 
robust
        eval $(fstype "${FS}" 2> /dev/null)
        if [ "$FSTYPE" = "unknown" ] &&  command -v blkid >/dev/null 2>&1 ; then
                FSTYPE=$(blkid -o value -s TYPE "${FS}")
-       elif [ "$FSTYPE" = "unknown" ] && [ -x /lib/udev/vol_id ]; then
-               FSTYPE=$(/lib/udev/vol_id -t "${FS}" 2> /dev/null)
        fi
        RET=$?
 

Reply via email to