~patviafore/livecd-rootfs/+git/livecd-rootfs:remove_divert_grub

Last commit made on 2021-03-16
Get this branch:
git clone -b remove_divert_grub https://git.launchpad.net/~patviafore/livecd-rootfs/+git/livecd-rootfs
Only Pat Viafore can upload to this branch. If you are Pat Viafore please log in for upload directions.

Branch merges

Branch information

Name:
remove_divert_grub
Repository:
lp:~patviafore/livecd-rootfs/+git/livecd-rootfs

Recent commits

8a3967f... by Pat Viafore

Make minimal images not boot with initramfs

82f6961... by Robert C Jennings

releasing package livecd-rootfs version 2.664.18

0775862... by Pat Viafore

Add mechanism to detect initrdless boot fallback

With this change, when we attempt to boot with an initramfs and fail,
initrdless_boot_fallback_triggered is set to non-zero in the grubenv.
This value can be checked after boot by looking in /boot/grub/grubenv
or by using the grub-editenv list command.

Addresses LP: #1870189

4030c8b... by David Krauser

Drop hack in kvm image that forces initramfs-less boot

Since the kvm image now boots without an initramfs by default, we
don't need to force it in the build hook.

c81f4ca... by David Krauser

Boot without an initramfs by default if running a custom kernel

Initramfs-less boot, which is a boot optimization, should only be
applied where we know it could work for users and provide an improved
boot boot experience; images with custom kernels are candidates for
that.

6a37833... by David Krauser

Boot with an initramfs by default in cloud images

Generic cloud images with the linux-generic kernel are not able to
boot without an initramfs. Previously, these images attempted to boot
without an initramfs, would fail, and then retry with an initramfs.
This slows the boot and is confusing behavior.

d059742... by Dimitri John Ledkov

releasing package livecd-rootfs version 2.664.17

6b32cd5... by Dimitri John Ledkov

functions: stop removing systemd-detect-virt unconditionally in undivert_grub

One can call divert_grub; replace_kernel; undivert_grub. And
replace_kernel will call into force_boot_without_initramfs, which
under certain conditions can call divert_grub &
undivert_grub. Resulting in undivert_grub called twice in a row.

When undivert_grub is called twice in a row it wipes
systemd-detect-virt binary from disk, as the rm call is unguarded to
check that there is something to divert if systemd package is
installed. And if the systemd package is not installed, it does not
check that systemd-detect-virt file is in-fact what divert_grub has
created.

Add a guard to check that systemd-detect-virt is the placeholder one,
before removing it.

LP: #1902260
(cherry picked from commit 096a00f40459187719840ccad99e86c7ade2ec12)

e1bea4d... by Dimitri John Ledkov

Perform fsck on all rootfs.

LP: #1912835
(cherry picked from commit 33b7272a2331279b4c7aa8de73ed8a9069d0bd39)

5c80231... by Dimitri John Ledkov

esp: perform fsck.

LP: #1912835
(cherry picked from commit 53b28d5f58284657ee8efd08a633d557af1fcd97)