From d72ae0de7052d96d00c8ce47632746db9c2cc26e Mon Sep 17 00:00:00 2001 From: Philip Roche Date: Tue, 4 Jun 2024 18:28:26 +0100 Subject: [PATCH] fix: Remove .patch files and livecd-rootfs symlink committed in error as part of merge commit. Apologies. Trying to do too many things at once This reverts changes added in error in commit 639f04b7 --- arm64-minimized-alignment.patch | 40 ------------------- buildd-noble-ls-python-3-apt.patch | 63 ------------------------------ livecd-rootfs | 1 - 3 files changed, 104 deletions(-) delete mode 100644 arm64-minimized-alignment.patch delete mode 100644 buildd-noble-ls-python-3-apt.patch delete mode 120000 livecd-rootfs diff --git a/arm64-minimized-alignment.patch b/arm64-minimized-alignment.patch deleted file mode 100644 index 784e2373..00000000 --- a/arm64-minimized-alignment.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff --git a/live-build/auto/config b/live-build/auto/config -index 20d28139..8f188b5d 100755 ---- a/live-build/auto/config -+++ b/live-build/auto/config -@@ -1048,12 +1048,13 @@ case $PROJECT in - add_task install ubuntu-server-raspi - ;; - armhf*) -- add_package install flash-kernel -+ if [ "${SUBPROJECT:-}" != minimized ]; then -+ add_package install flash-kernel -+ fi - ;; - arm64*) -- add_package install flash-kernel -- if [ "${SUBARCH:-}" = "generic" ]; then -- KERNEL_FLAVOURS=generic -+ if [ "${SUBPROJECT:-}" != minimized ]; then -+ add_package install flash-kernel - fi - ;; - amd64*) -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 3685e464..4602267c 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 -@@ -112,11 +112,11 @@ install_grub() { - # please file a bug against grub2 to include the affected module. - case $ARCH in - arm64) -- chroot mountpoint apt-get -qqy install --no-install-recommends shim-signed grub-efi-arm64-signed -+ chroot mountpoint apt-get install -qqy shim-signed - efi_target=arm64-efi - ;; - armhf) -- chroot mountpoint apt-get -qqy install --no-install-recommends grub-efi-arm grub-efi-arm-bin -+ chroot mountpoint apt-get -qqy install grub-efi-arm grub-efi-arm-bin - efi_target=arm-efi - ;; - amd64) diff --git a/buildd-noble-ls-python-3-apt.patch b/buildd-noble-ls-python-3-apt.patch deleted file mode 100644 index 8e38228d..00000000 --- a/buildd-noble-ls-python-3-apt.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff --git a/live-build/buildd/hooks/02-disk-image-uefi.binary b/live-build/buildd/hooks/02-disk-image-uefi.binary -index 44a7ff42..a90f19c7 100755 ---- a/live-build/buildd/hooks/02-disk-image-uefi.binary -+++ b/live-build/buildd/hooks/02-disk-image-uefi.binary -@@ -53,6 +53,26 @@ LABEL=UEFI /boot/efi vfat defaults 0 1 - EOF - } - -+ -+divert_lsb_release() { -+ CHROOT_ROOT="$1" -+ chroot "$CHROOT_ROOT" dpkg-divert --local \ -+ --divert /usr/bin/lsb_release.dpkg-divert \ -+ --rename /usr/bin/lsb_release -+ echo "echo Ubuntu" > "$CHROOT_ROOT"/usr/bin/lsb_release -+ chmod +x "$CHROOT_ROOT"/usr/bin/lsb_release -+ -+} -+ -+undivert_lsb_release() { -+ CHROOT_ROOT="$1" -+ if grep -q "^echo Ubuntu$" "$CHROOT_ROOT"/usr/bin/lsb_release; then -+ rm "$CHROOT_ROOT"/usr/bin/lsb_release -+ fi -+ chroot "$CHROOT_ROOT" dpkg-divert --remove --local \ -+ --rename /usr/bin/lsb_release -+} -+ - install_grub() { - mkdir mountpoint - mount_partition "${rootfs_dev_mapper}" mountpoint -@@ -69,7 +89,8 @@ install_grub() { - fi - - chroot mountpoint apt-get -y update -- -+ divert_lsb_release mountpoint -+ chroot mountpoint lsb_release - # UEFI GRUB modules are meant to be used equally by Secure Boot and - # non-Secure Boot systems. If you need an extra module not already - # provided or run into "Secure Boot policy forbids loading X" problems, -@@ -84,7 +105,7 @@ install_grub() { - efi_target=arm-efi - ;; - amd64) -- chroot mountpoint apt-get install -qqy grub-pc shim-signed -+ chroot mountpoint apt-get install -qqy grub-pc shim-signed python3-apt - efi_target=x86_64-efi - ;; - esac -@@ -121,10 +142,12 @@ GRUB_RECORDFAIL_TIMEOUT=0 - GRUB_TERMINAL=console - EOF - -+ - divert_grub mountpoint - chroot mountpoint update-grub - replace_grub_root_with_label mountpoint - undivert_grub mountpoint -+ undivert_lsb_release mountpoint - - chroot mountpoint apt-get -y clean - diff --git a/livecd-rootfs b/livecd-rootfs deleted file mode 120000 index f5d3076e..00000000 --- a/livecd-rootfs +++ /dev/null @@ -1 +0,0 @@ -/home/philroche/Working/livecd-rootfs \ No newline at end of file