~cloud-initramfs-tools/cloud-initramfs-tools/trunk

Viewing all changes in revision 145.

  • Committer: Scott Moser
  • Date: 2017-06-13 20:50:44 UTC
  • mfrom: (142.1.1 trunk)
  • Revision ID: smoser@ubuntu.com-20170613205044-1ghofobyvwz0wydl
overlayroot: add 'noauto' to the options for the /media/root-ro fstab entry.

The primary change here is to add 'noauto' to the fstab entry that is
written for the read-only mount that is the underlay for the / mount.
The reason for this is that systemds' mount generator would create a
.mount entry for /media/root-ro that would depend on the .mount job
for / (-.mount).

A typical boot would have written:
  LABEL=cloudimg-rootfs /media/root-ro/ ext4 ro,defaults 0 0
  /media/root-ro/ / overlay lowerdir=/media/root-ro/,upper..... 0 0

But now we write
  LABEL=cloudimg-rootfs /media/root-ro/ ext4 ro,defaults,noauto 0 0
  /media/root-ro/ / overlay lowerdir=/media/root-ro/,upper..... 0 0

That works because we no longer will get a line like:
  Before=local-fs.target 
for the media-root\x2dro.mount (media-root-ro.mount).
Thats perfectly fine as it is already mounted in the initramfs.

We would only see this in slower systems, most commonly when qemu was
used without kvm.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: