summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-05-08 14:45:11 +0200
committerThomas Bächler <thomas@archlinux.org>2010-05-08 14:45:11 +0200
commite728a16478d10ae9351a2854d77ceba3664c9150 (patch)
treeef4ef936c7c6909a29c491438e83f0fb853afba7 /init_functions
parent7319269ca791938310dded6ff8a806f2426b94e7 (diff)
downloadmkinitcpio-e728a16478d10ae9351a2854d77ceba3664c9150.tar.gz
mkinitcpio-e728a16478d10ae9351a2854d77ceba3664c9150.tar.xz
Port 83ef38409182a9c024809553dff8c872902d0889 to init_functions too, to remove more eval hacks
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_functions b/init_functions
index c165ff0..1ae844b 100644
--- a/init_functions
+++ b/init_functions
@@ -73,7 +73,7 @@ default_mount_handler() {
if [ -n "${rootfstype}" ]; then
fstype="${rootfstype}"
else
- fstype=$(eval $(/sbin/blkid -o udev -p "${root}"); echo $ID_FS_TYPE)
+ fstype=$(sbin/blkid -u filesystem -o value -s TYPE -p "${root}")
if [ -z "${fstype}" ]; then
err "Unable to determine the file system type of ${root}:"
echo "Either it contains no filesystem, an unknown filesystem,"