summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2011-06-30 22:18:44 +0200
committerThomas Bächler <thomas@archlinux.org>2011-06-30 22:18:44 +0200
commit726ff1f9466847cbe27e807cf79560070651781c (patch)
treefe2831ed503cbaccc2cd8be60c53fe34f919fe38 /init_functions
parenta594ffca592612f9293454198e56d7ea72b75d14 (diff)
downloadmkinitcpio-726ff1f9466847cbe27e807cf79560070651781c.tar.gz
mkinitcpio-726ff1f9466847cbe27e807cf79560070651781c.tar.xz
init_functions/default_mount_handler: use -l option for blkid to avoid syntax errors in a later mount command
Fixes FS#24969.
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 22c01f0..fe29961 100644
--- a/init_functions
+++ b/init_functions
@@ -75,7 +75,7 @@ parse_cmdline() {
default_mount_handler() {
# resolve tag name to block device
if [ "${root:0:5}" = 'UUID=' ] || [ "${root:0:6}" = 'LABEL=' ]; then
- device=$(blkid -t "$root" -o device)
+ device=$(blkid -l -t "$root" -o device)
if [ -n "$device" ]; then
root=$device
fi