~brightbox/cloud-initramfs-tools/cloud-initramfs-tools

« back to all changes in this revision

Viewing changes to overlayroot/scripts/init-bottom/overlayroot

  • Committer: Scott Moser
  • Date: 2012-07-30 20:54:54 UTC
  • Revision ID: smoser@ubuntu.com-20120730205454-3izl5y2gdp0m1b5i
fix incorrect logic from last commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
571
571
# then mount our overlayfs as read-only just to be more normal
572
572
read cmdline < /proc/cmdline
573
573
cmdline=" $cmdline "
574
 
[ "${cmdline#* ro }" != "$cmdline" ] || mount -o remount,ro "$ROOTMNT" ||
575
 
        log_fail "failed to remount overlayroot read-only"
 
574
if [ "${cmdline#* ro }" != "$cmdline" ]; then
 
575
        mount -o remount,ro "$ROOTMNT" ||
 
576
                log_fail "failed to remount overlayroot read-only"
 
577
        debug "mounted $ROOTMNT read-only per kernel cmdline"
 
578
fi
576
579
 
577
580
msg="configured root with '$overlayroot' using ${overlayroot_driver} per"
578
581
msg="$msg ${used_desc}"