~philroche/livecd-rootfs/+git/livecd-rootfs:bugfix/xenial-update-grub-manual-grub-pc-bin

Last commit made on 2023-12-04
Get this branch:
git clone -b bugfix/xenial-update-grub-manual-grub-pc-bin https://git.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs
Only Philip Roche can upload to this branch. If you are Philip Roche please log in for upload directions.

Branch merges

Branch information

Name:
bugfix/xenial-update-grub-manual-grub-pc-bin
Repository:
lp:~philroche/livecd-rootfs/+git/livecd-rootfs

Recent commits

004475c... by Philip Roche

fix: Mark grub-pc-bin as manual install to avoid autoremoval (LP: #2045418)

With amd64 build target calling `update-grub` no longer works and fails build with error

```
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
```

`/usr/lib/grub/i386-pc/modinfo.sh` is part of the grub-pc-bin package.

We are seeing this now on xenial as grub-pc-bin is now removed during build as part of fixing
bug https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2036195.

To resolve this we mark grub-pc-bin as manually installed so it is not autoremoved.

As we are running grub-install ourselves for a specific target we need to make sure to install that
target first which means this will not be solved by changing dependencies of the grub packages.

41ecdf5... by Philip Roche

Merge bugfix/ubuntu-cpc-LP-2036195-auto-installed-packages-xenial into ubuntu/xenial [a=philroche] [r=andrew-cloke,vorlon]

The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454068

6e9e775... by Steve Langasek

The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.

(cherry picked from commit 1deccc2edd7f139b84a6cb3d0a4dfe5ebaff50c7)

# Conflicts:
# debian/changelog

f09ffc5... by Robert C Jennings

releasing package livecd-rootfs version 2.408.68

eef7fee... by Gauthier Jolly

ubuntu-cpc: secure esp mountpoint (LP: #1881006)

Change mount option for ubuntu-cpc images from "defaults" to
"umask=0077". ESP partitions might contain sensitive data and
non-root users shouldn't have read access on it.

e77821b... by Dimitri John Ledkov

releasing package livecd-rootfs version 2.408.67

bf6e4d3... by Dimitri John Ledkov

Revert "esp: install grub in ubuntu bootloader id path, instead of removable."

This reverts commit 8e9925729534fffa7b8fb1a30a2f4527b00e850e.

2d81daa... by Dimitri John Ledkov

releasing package livecd-rootfs version 2.408.66

6832b6b... 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)

d2e70ab... by Dimitri John Ledkov

Perform fsck on all rootfs.

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