aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-10-13 16:41:59 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-10-13 22:30:40 +0200
commit33fc7eb69375b28f20eb254c5a7aee1cee122b69 (patch)
treead9a415b41a54ac65f2e78dc84fbc20ff8a8c1d1
parentClone livecd_stage1.py to diskimage_stage1.py, only cosmetic changes (diff)
downloadcatalyst-33fc7eb69375b28f20eb254c5a7aee1cee122b69.tar.gz
catalyst-33fc7eb69375b28f20eb254c5a7aee1cee122b69.tar.bz2
catalyst-33fc7eb69375b28f20eb254c5a7aee1cee122b69.zip
Support scripts for bootloader installation and configuration
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-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