~raharper/cloud-initramfs-tools:fix/overlayroot-existing-fstab

Last commit made on 2020-08-17
Get this branch:
git clone -b fix/overlayroot-existing-fstab https://git.launchpad.net/~raharper/cloud-initramfs-tools
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
fix/overlayroot-existing-fstab
Repository:
lp:~raharper/cloud-initramfs-tools

Recent commits

4f55c92... by Ryan Harper

overlayroot: overwrite existing fstab when overlayrootifying fstab

The previous fix for handling missing fstab refactored out the initial
write to ${ROOTMNT}/etc/fstab which emitted the overlayroot fstab
header (clobbering any existing fstab that was in the rootfs). Now
the header is generated in overlayrootify_fstab; and the output was
*appended* which worked when the write was in two stages (header +
contents); Now that the header is generated with the content the
output must clobber the target file.

2d441a8... by Scott Moser

releasing package cloud-initramfs-tools version 0.46ubuntu1

cdeb486... by Scott Moser

update changelog

aea2ecf... by Scott Moser

overlayroot: initialize /etc/fstab if root does not have one and read-only

A root filesystem may not have an /etc/fstab. That could be for either:
a.) not needed - the kernel command line has root mount options and no
  other filesystems are mounted.
b.) system has systemd.mounts - this is currently not supported by
overlayroot.

If the kernel command line contains 'ro', then overlayroot will
correctly leave root mounted 'ro'. The problem was that without an
/etc/fstab, systemd would not remount the root filesystem rw, and
thus failure would ensue.

The change here is to initialize an fstab in the case that the root
filesystem did not contain one, *and* 'ro' is present on the cmdline.
In cases where 'ro' is not present, then overlayroot will leave /
mounted as rw, so systemd does not need to remount rw.

LP: #1890803

a7bf788... by Scott Moser

releasing package cloud-initramfs-tools version 0.45ubuntu1

c792d0f... by Scott Moser

update changelog

adb0d6c... by Scott Moser

Add dependency on flock for growroot's use of growpart.

growpart was modified to use flock, so we have to make sure that
that gets put into the initramfs or growroot module won't work.

LP: #1834875

f6e65ed... by Scott Moser

releasing package cloud-initramfs-tools version 0.44ubuntu1

This is what was uploaded to ubuntu for 0.44ubuntu1.

5be1889... by Scott Moser

update changelog

f6e57ad... by dann frazier

copymods: Fix typo parsing copymods= parameters in /proc/cmdline.

Normally, copymods will exit and do nothing if the target root
already contains /lib/modules/<version>. It intended intended to allow
overriding that behavior with kernel command line argument of
string 'copymods=force'.

The parsing of that command line was simply broken.
The result was simply that it would always exit in the case that
a modules directory already existed.