diff options
author | Harald Hoyer <harald@redhat.com> | 2010-05-03 11:34:30 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2010-05-03 11:34:30 +0200 |
commit | d8b9844c618aceef2e13cac847386bc06ee002a9 (patch) | |
tree | a723b31f9efa7fadef206dd413bd1a57085d1c19 /dracut-functions | |
parent | 1d323cd938db64eb695650917f8792e9e2a16c38 (diff) | |
download | dracut-d8b9844c618aceef2e13cac847386bc06ee002a9.tar.gz dracut-d8b9844c618aceef2e13cac847386bc06ee002a9.tar.bz2 dracut-d8b9844c618aceef2e13cac847386bc06ee002a9.zip |
dracut-functions: use udevadm to get ID_FS_*
Diffstat (limited to 'dracut-functions')
-rwxr-xr-x | dracut-functions | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dracut-functions b/dracut-functions index 16b7d3de..fdcfb7e7 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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 |