summaryrefslogtreecommitdiff
path: root/dracut-functions
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-05-03 11:34:30 +0200
committerHarald Hoyer <harald@redhat.com>2010-05-03 11:34:30 +0200
commitd8b9844c618aceef2e13cac847386bc06ee002a9 (patch)
treea723b31f9efa7fadef206dd413bd1a57085d1c19 /dracut-functions
parent1d323cd938db64eb695650917f8792e9e2a16c38 (diff)
downloaddracut-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-xdracut-functions3
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