|
|
@ -65,8 +65,8 @@ install_grub() {
|
|
|
|
chroot mountpoint mkdir -p "${efi_boot_dir}"
|
|
|
|
chroot mountpoint mkdir -p "${efi_boot_dir}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${SUBPROJECT:-}" = minimized ] && [ -n "$partuuid" ]; then
|
|
|
|
if [ "${SUBPROJECT:-}" = minimized ] && [ -n "$partuuid" ]; then
|
|
|
|
# FIXME: code duplicated between 032-disk-image.binary
|
|
|
|
# FIXME: code duplicated between disk-image.binary
|
|
|
|
# and 033-disk-image-uefi.binary. We want to fix this to not
|
|
|
|
# and disk-image-uefi.binary. We want to fix this to not
|
|
|
|
# have initramfs-tools installed at all on these images.
|
|
|
|
# have initramfs-tools installed at all on these images.
|
|
|
|
echo "partuuid found for root device; omitting initrd"
|
|
|
|
echo "partuuid found for root device; omitting initrd"
|
|
|
|
echo "GRUB_FORCE_PARTUUID=$partuuid" >> mountpoint/etc/default/grub.d/40-force-partuuid.cfg
|
|
|
|
echo "GRUB_FORCE_PARTUUID=$partuuid" >> mountpoint/etc/default/grub.d/40-force-partuuid.cfg
|
|
|
|