[neon/neon/livecd-rootfs/Neon/release] /: Drop use of --removable flag to grub-install from buildd/hooks

Steve Langasek null at kde.org
Mon May 22 15:24:15 BST 2023


Git commit 5ac4df3a1a928b76e00c74647ad9d0fe30c007e7 by Steve Langasek.
Committed on 18/05/2023 at 22:16.
Pushed by jriddell into branch 'Neon/release'.

Drop use of --removable flag to grub-install from buildd/hooks

This now matches the cloud images (7c760864fdcb278ca37396f06f5e3f297428d63d)
fixing bootloader updates in the buildd images, but also fixing
compatibility with using devtmpfs for losetup.

M  +10   -0    debian/changelog
M  +0    -10   live-build/buildd/hooks/02-disk-image-uefi.binary

https://invent.kde.org/neon/neon/livecd-rootfs/commit/5ac4df3a1a928b76e00c74647ad9d0fe30c007e7

diff --git a/debian/changelog b/debian/changelog
index c3ccac60..1b4e4428 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+livecd-rootfs (2.765.22) UNRELEASED; urgency=medium
+
+  * Drop use of --removable flag to grub-install from
+    live-build/buildd/hooks/02-disk-image-uefi.binary, to match the cloud
+    images (7c760864fdcb278ca37396f06f5e3f297428d63d).  This fixes
+    bootloader updates in the buildd images, but also fixes compatibility
+    with using devtmpfs for losetup. 
+
+ -- Steve Langasek <steve.langasek at ubuntu.com>  Wed, 17 May 2023 09:25:55 -0700
+
 livecd-rootfs (2.765.21) jammy; urgency=medium
 
   [ jchittum ]
diff --git a/live-build/buildd/hooks/02-disk-image-uefi.binary b/live-build/buildd/hooks/02-disk-image-uefi.binary
index 280db0ab..d358596a 100755
--- a/live-build/buildd/hooks/02-disk-image-uefi.binary
+++ b/live-build/buildd/hooks/02-disk-image-uefi.binary
@@ -102,19 +102,9 @@ install_grub() {
         --boot-directory=/boot \
         --efi-directory=/boot/efi \
         --target=${efi_target} \
-        --removable \
         --uefi-secure-boot \
         --no-nvram
 
-    if [ -f mountpoint/boot/efi/EFI/BOOT/grub.cfg ]; then
-        sed -i "s| root| root hd0,gpt1|" mountpoint/boot/efi/EFI/BOOT/grub.cfg
-        sed -i "1i${IMAGE_STR}" mountpoint/boot/efi/EFI/BOOT/grub.cfg
-        # For some reason the grub disk is looking for /boot/grub/grub.cfg on
-        # part 15....
-        chroot mountpoint mkdir -p /boot/efi/boot/grub
-        chroot mountpoint cp /boot/efi/EFI/BOOT/grub.cfg /boot/efi/boot/grub
-    fi
-
     if [ "$ARCH" = "amd64" ]; then
         # Install the BIOS/GPT bits. Since GPT boots from the ESP partition,
         # it means that we just run this simple command and we're done



More information about the Neon-commits mailing list