From: Thomas Glanzmann Date: Sun, 30 Jan 2022 06:30:34 +0000 (+0100) Subject: using jmr2 way to install grub which is saner X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/a340a66a8f2fbabbdb82b6cba42e7bfe137dbd82?ds=inline;hp=-c using jmr2 way to install grub which is saner 01:46 < jmr2> Glanzmann: thanks for your various documents. I just tether-booted the whole chain for the first time, and it's quite fun to watch. 01:46 < jmr2> Two comments: 1) instead of deleting fbaa64.efi (I still have it without ill effects), you can uninstall grub-efi-arm64-signed and its dependencies. 01:47 < jmr2> 2) I couldn't get dpkg-reconfigure grub-efi-arm64 to install grub. I ended up using mps's --efi-directory instead of your --removable, since it uses a path instead of a device - less risky. 01:47 < jmr2> In the end, installing grub is three commands: apt-get install grub-efi grub-efi-arm64-signed- ; grub-install --target=arm64-efi --efi-directory=/boot/efi --removable ; update-grub --- a340a66a8f2fbabbdb82b6cba42e7bfe137dbd82 diff --git a/files/quickstart.txt b/files/quickstart.txt index d266ab4..1e21263 100644 --- a/files/quickstart.txt +++ b/files/quickstart.txt @@ -22,14 +22,11 @@ date --set 14:21 dpkg-reconfigure tzdata # Fix grub -apt-get purge grub-efi grub-efi-arm64 grub-efi-arm64-bin grub-efi-arm64-signed -apt-get install grub-efi-arm64 -grub-install --removable /dev/nvme0n1p4 -# Set removable media to yes and nvram to no -dpkg-reconfigure dpkg-reconfigure grub-efi-arm64 +# We deinstall grub-efi-arm64-signed- because it creates a file fbaa64.efi +# which makes u-boot hang. +apt-get install grub-efi grub-efi-arm64-signed- +grub-install --target=arm64-efi --efi-directory=/boot/efi --removable update-grub -find /boot/efi -name fbaa64.efi | xargs rm - See also: https://github.com/AsahiLinux/docs/wiki/U-Boot # xorg