summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,"