From 60b2ebc126f8ba2cfefd58885f7d9625aea63405 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 23 Feb 2022 23:27:40 +0100 Subject: [PATCH] fix installer --- bootstrap.sh | 11 ++++++----- files/grub.cfg | 2 +- files/interfaces | 7 ++----- files/rc.local | 6 ++++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 022dc07..5deb705 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -78,6 +78,8 @@ build_rootfs() cd testing + mkdir -p boot/efi + sudo bash -c 'echo live > etc/hostname' sudo bash -c 'echo > etc/motd' @@ -138,17 +140,16 @@ build_efi() { ( rm -rf EFI - mkdir -p EFI/boot + mkdir -p EFI/boot EFI/debian cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi EFI/boot/bootaa64.efi export INITRD=`ls -1 testing/boot/ | grep initrd` export VMLINUZ=`ls -1 testing/boot/ | grep vmlinuz` export UUID=`blkid media | awk -F\" '{print $2}'` - cat > EFI/boot/grub.cfg < EFI/debian/grub.cfg <; for (@lines) { if (/${uuid_in_grub_cfg}/) { @@ -99,6 +100,7 @@ install_grub system("echo 'grub-efi-arm64 grub2/update_nvram boolean false' | debconf-set-selections"); system("echo 'grub-efi-arm64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections"); system("dpkg-reconfigure -fnoninteractive grub-efi-arm64"); + system("update-grub"); } sub -- 2.39.5