Comment 5 for bug 118292

Revision history for this message
Allcolor-g (allcolor) wrote : Re: vol_id returns wrong fs information but blkid returns correct informations, udev create wrong uuid symlink

So doing the following (horrible *hack*), resolve my problem and automount correctly my boot partition with the uuid.

1: sudo -s
2: mv /sbin/vol_id /sbin/vol_id.old
3: vi /sbin/vol_id

put the following in the file:
#!/bin/sh
RESULT=`blkid $2`
LABEL=`echo "$RESULT" | cut -d " " -f 2 | cut -d = -f 2 | cut -d \" -f 2`
UUID=`echo "$RESULT" | cut -d " " -f 3 | cut -d = -f 2 | cut -d \" -f 2`
TYPE=`echo "$RESULT" | cut -d " " -f 5 | cut -d = -f 2 | cut -d \" -f 2`

echo "ID_FS_USAGE=filesystem"
echo "ID_FS_TYPE=$TYPE"
echo "ID_FS_VERSION=1.0"
echo "ID_FS_UUID=$UUID"
echo "ID_FS_LABEL=$LABEL"
echo "ID_FS_LABEL_SAFE=$LABEL"

4: chmod u+x /sbin/vol_id

Ensure that you refer to your partition with UUID in /etc/fstab

And that did work o_O ;) I don't know where else vol_id is used so it may breaks something (but at first sight here, nothing is broken and well... it works better now).

Until a patch is done that can help.