From b1b3c063d4f5de12fc17f8b705c18f331fde61df Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 26 Nov 2023 21:30:01 +0100 Subject: Remove executable flag from initramfs copy --- prepare-lastboot | 1 + 1 file changed, 1 insertion(+) diff --git a/prepare-lastboot b/prepare-lastboot index f13afc2..21ab825 100644 --- a/prepare-lastboot +++ b/prepare-lastboot @@ -36,6 +36,7 @@ if [ "$ROOT_FS" = "$BASE/$DEFAULT" ]; then echo "unpack current initramfs to /boot/initramfs-$(uname -r).img" objcopy -O binary -j.initrd "$EFI_DIR/EFI/Linux/$LASTBOOT-$DEFAULT.efi" "/boot/initramfs-$(uname -r).img" + chmod a-x "/boot/initramfs-$(uname -r).img" else echo "not booted to $BASE/$DEFAULT, taking no action" fi -- cgit v1.2.3-70-g09d2