From: Harald Hoyer Date: Wed, 23 Jan 2013 15:23:07 +0000 (+0100) Subject: rootfs-block/mount-root.sh: fixup for 8b6bf0ef5 X-Git-Tag: 026~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae4758ce0d0ceeddabe4a78dd575c7b42c349a88;p=thirdparty%2Fdracut.git rootfs-block/mount-root.sh: fixup for 8b6bf0ef5 not only fix the warning message, but the real mount arguments, too --- diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index 54d50126a..c7626c36b 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -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