diff --git a/debian/changelog b/debian/changelog index ebdc42f7..6024d69d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.408.70) xenial; urgency=medium + + * Mark grub-pc-bin as manual install to avoid autoremoval (LP: #2045418) + + -- Philip Roche Mon, 04 Dec 2023 12:39:49 +0000 + livecd-rootfs (2.408.69) xenial; urgency=medium [Steve Langasek] diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary index fa0a3ed6..eb4eab99 100755 --- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary @@ -86,6 +86,10 @@ install_grub() { efi_target=arm64-efi ;; amd64) + # LP#2045418 - grub-pc-bin is installed as a dependency of grub-pc and is required for grub-install. + # However, when grub-efi-amd64 is installed, grub-pc is removed and grub-pc-bin is marked for autoremoval. + # This causes grub-install to fail. To avoid this we mark grub-pc-bin as manually installed. + chroot mountpoint apt-mark manual grub-pc-bin chroot mountpoint apt-get install -qqy grub-efi-amd64-signed grub-efi-amd64 shim-signed grub_modules="multiboot serial usb usb_keyboard" efi_target=x86_64-efi