]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-block/mount-root.sh: fixup for 8b6bf0ef5
authorHarald Hoyer <harald@redhat.com>
Wed, 23 Jan 2013 15:23:07 +0000 (16:23 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 23 Jan 2013 15:24:33 +0000 (16:24 +0100)
not only fix the warning message, but the real mount arguments, too

modules.d/95rootfs-block/mount-root.sh

index 54d50126ac1870f1fa614dfebcae25257980931c..c7626c36b95c73f0dc4a8c8f750c467b393e277a 100755 (executable)
@@ -26,9 +26,10 @@ mount_root() {
     fi
 
     _rflags_ro="$rflags,ro"
+    _rflags_ro="${_rflags_ro##,}"
 
     while ! mount -t ${rootfs} -o "$_rflags_ro" "${root#block:}" "$NEWROOT"; do
-        warn "Failed to mount -t ${rootfs} -o ${_rflags_ro##,} ${root#block:} $NEWROOT"
+        warn "Failed to mount -t ${rootfs} -o $_rflags_ro ${root#block:} $NEWROOT"
         fsck_ask_err
     done