dracut-functions: use udevadm to get ID_FS_*
authorHarald Hoyer <harald@redhat.com>
Mon, 3 May 2010 09:34:30 +0000 (11:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 3 May 2010 09:34:30 +0000 (11:34 +0200)
dracut-functions

index 16b7d3d..fdcfb7e 100755 (executable)
@@ -51,6 +51,9 @@ derror() {
 }
 
 get_fs_env() {
+    eval $(udevadm info --query=env --name=$1|egrep 'ID_FS_(TYPE|UUID)=')
+    [[ $ID_FS_TYPE ]] && return
+
     if [[ -x /lib/udev/vol_id ]]; then
        eval $(/lib/udev/vol_id --export $1)
     elif find_binary blkid >/dev/null; then