commit: 1151a6ae1a11a3fc1288598b50a70d231a5cda4c
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 21:25:14 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 21:25:55 2024 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=1151a6ae
Allow qcow2 grub-install on arm64
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
targets/support/qcow2-grub-install.sh | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/targets/support/qcow2-grub-install.sh
b/targets/support/qcow2-grub-install.sh
index 850eb72a..7caa9e11 100755
--- a/targets/support/qcow2-grub-install.sh
+++ b/targets/support/qcow2-grub-install.sh
@@ -2,8 +2,16 @@
source /tmp/chroot-functions.sh
-echo "Installing grub with target x86_64-efi"
-grub-install --no-floppy --efi-directory=/boot --removable --skip-fs-probe
--no-nvram --no-bootsector --target=x86_64-efi
+case ${clst_hostarch} in
+ amd64)
+ echo "Installing grub with target x86_64-efi"
+ grub-install --no-floppy --efi-directory=/boot --removable
--skip-fs-probe --no-nvram --no-bootsector --target=x86_64-efi
+ ;;
+ arm64)
+ echo "Installing grub with target arm64-efi"
+ grub-install --no-floppy --efi-directory=/boot --removable
--skip-fs-probe --no-nvram --no-bootsector --target=arm64-efi
+ ;;
+esac
echo "Creating grub configuration"
grub-mkconfig -o /boot/grub/grub.cfg