From: Thomas Glanzmann Date: Wed, 23 Feb 2022 22:27:40 +0000 (+0100) Subject: fix installer X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/60b2ebc126f8ba2cfefd58885f7d9625aea63405 fix installer --- 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