]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 16b7d3de93bb44d56fa64efbe385ad57a4905e56..fdcfb7e74f23ac326d5388bb1f8b397fc69405c8 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