rootfs-block/mount-root.sh: fixup for 8b6bf0ef5

not only fix the warning message, but the real mount arguments, too
master
Harald Hoyer 2013-01-23 16:23:07 +01:00
parent 66f01450a8
commit ae4758ce0d
1 changed files with 2 additions and 1 deletions

View File

@ -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