aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtargets/support/qcow2-grub-install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/targets/support/qcow2-grub-install.sh b/targets/support/qcow2-grub-install.sh
new file mode 100755
index 00000000..850eb72a
--- /dev/null
+++ b/targets/support/qcow2-grub-install.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+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
+
+echo "Creating grub configuration"
+grub-mkconfig -o /boot/grub/grub.cfg