rootfs-block/mount-root.sh: corrected check for journaldev
authorHarald Hoyer <harald@redhat.com>
Tue, 31 Jul 2012 11:28:45 +0000 (13:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 31 Jul 2012 11:28:45 +0000 (13:28 +0200)
modules.d/95rootfs-block/mount-root.sh

index a6cba12..0467a55 100755 (executable)
@@ -11,8 +11,8 @@ mount_root() {
     # sanity - determine/fix fstype
     rootfs=$(det_fs "${root#block:}" "$fstype")
 
-    journaldev=$(getarg root.journaldev)
-    if [ -n $journaldev ]; then
+    journaldev=$(getarg "root.journaldev=")
+    if [ -n "$journaldev" ]; then
         case "$rootfs" in
             xfs)
                 rflags="${rflags:+${rflags},}logdev=$journaldev"