diff --git a/debian/changelog b/debian/changelog index 23dccc2a..fc848acf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.408.15) UNRELEASED; urgency=medium + + [ Mathieu Trudel-Lapierre ] + * Drop preloading of grub modules that are built into the grub signed + image. This is functionally a no-op, changed only to clean up the code. + + -- Steve Langasek Wed, 23 Aug 2017 17:35:40 -0700 + livecd-rootfs (2.408.14) xenial; urgency=medium * live-build/auto/config: Filter libgles1-mesa out of tasks, as it is not a diff --git a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary index cdef497b..600213eb 100755 --- a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary @@ -61,15 +61,20 @@ install_grub() { efi_boot_dir="/boot/efi/EFI/BOOT" chroot mountpoint mkdir -p "${efi_boot_dir}" + # The modules below only make sense on non-Secure Boot UEFI systems. + # Otherwise, with Secure Boot enabled GRUB will refuse to load them. + # Any modules already in debian/build-efi-images do not need to be listed. + # Furthermore, other modules such as terminal, video_* and efi_* are all + # already available. case $ARCH in arm64) chroot mountpoint apt-get -qqy install --no-install-recommends grub-efi-arm64 grub-efi-arm64-bin - grub_modules="part_gpt fat gzio ext2 normal chain boot configfile linux search_fs_uuid search_label terminal serial video video_fb efi_gop" + grub_modules="serial" efi_target=arm64-efi ;; amd64) chroot mountpoint apt-get install -qqy grub-efi-amd64-signed grub-efi-amd64 shim-signed - grub_modules="part_gpt fat ext2 normal chain boot configfile linux multiboot search_fs_uuid search_label terminal serial video video_fb video_bochs usb usb_keyboard efi_gop efi_uga" + grub_modules="multiboot serial usb usb_keyboard" efi_target=x86_64-efi ;; esac @@ -77,8 +82,9 @@ install_grub() { cat << EOF >> mountpoint/etc/default/grub.d/50-cloudimg-settings.cfg ${CLOUD_IMG_STR} # For Cloud Image compatability -GRUB_PRELOAD_MODULES="${grub_modules}" +GRUB_PRELOAD_MODULES="${GRUB_PRELOAD_MODULES:-$grub_modules}" EOF + chroot mountpoint grub-install "${loop_device}" \ --boot-directory=/boot \ --efi-directory=/boot/efi \