diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-03-07 01:25:39 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-05-08 14:03:40 +0200 |
commit | 83ef38409182a9c024809553dff8c872902d0889 (patch) | |
tree | e76e619e8fd9de4342e8e83d1e4d05f7909af7ac /install | |
parent | d5625e4bd28a9b3066777c539b05aef3fc551b8f (diff) | |
download | mkinitcpio-83ef38409182a9c024809553dff8c872902d0889.tar.gz mkinitcpio-83ef38409182a9c024809553dff8c872902d0889.tar.xz |
Change how autodetect hook lookup for filesystems
In this way, remove eval hacks and enviroments vars, just use blkid
syntax.
I guess in this way will fix/hide "command not found" when fstype
is not property setup in fs, reported by some users.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'install')
-rw-r--r-- | install/autodetect | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect index 6c9193c..63e85c2 100644 --- a/install/autodetect +++ b/install/autodetect @@ -14,7 +14,7 @@ install () findfs () { for blkdev in $(find /dev -type b | grep -v -e /dev/loop -e /dev/ram -e /dev/fd); do - (eval $(/sbin/blkid -o udev -p "${blkdev}"); [ "${ID_FS_USAGE}" = "filesystem" ] && echo $ID_FS_TYPE) + /sbin/blkid -u filesystem -o value -s TYPE -p "${blkdev}" 2> /dev/null done } |