From 1b6f9b9880348be939d354e8506a2424e88776c8 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 23 Nov 2021 19:57:18 +0100 Subject: mkosi: Install sd-boot using postinst script instead of in build script This allows us to reuse bootctl install instead of replicating the logic in the build script. --- mkosi.build | 9 --------- 1 file changed, 9 deletions(-) (limited to 'mkosi.build') diff --git a/mkosi.build b/mkosi.build index bb04d5edaa..fe3688d6ae 100755 --- a/mkosi.build +++ b/mkosi.build @@ -110,12 +110,3 @@ if [ -n "$IMAGE_VERSION" ] ; then cat /tmp/os-release.tmp > "$DESTDIR"/usr/lib/os-release rm /tmp/os-release.tmp fi - -# Manually update the boot loader from the one we just built -mkdir -p "$DESTDIR"/boot/efi/EFI/systemd "$DESTDIR"/boot/efi/EFI/BOOT -cp "$DESTDIR"/usr/lib/systemd/boot/efi/systemd-bootx64.efi "$DESTDIR"/boot/efi/EFI/systemd/systemd-bootx64.efi -cp "$DESTDIR"/usr/lib/systemd/boot/efi/systemd-bootx64.efi "$DESTDIR"/boot/efi/EFI/BOOT/bootx64.efi - -mkdir -p "$DESTDIR"/efi/EFI/systemd "$DESTDIR"/efi/EFI/BOOT -cp "$DESTDIR"/usr/lib/systemd/boot/efi/systemd-bootx64.efi "$DESTDIR"/efi/EFI/systemd/systemd-bootx64.efi -cp "$DESTDIR"/usr/lib/systemd/boot/efi/systemd-bootx64.efi "$DESTDIR"/efi/EFI/BOOT/bootx64.efi -- cgit v1.2.1