public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:dilfridge/qcow2 commit in: targets/diskimage-stage2/, targets/support/
Date: Sat, 12 Oct 2024 14:54:44 +0000 (UTC)	[thread overview]
Message-ID: <1728744867.624f99730fbaf744b60fc20d097509d5ae64d13d.dilfridge@gentoo> (raw)

commit:     624f99730fbaf744b60fc20d097509d5ae64d13d
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 12 14:54:27 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Oct 12 14:54:27 2024 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=624f9973

Add EFI grub installation

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 targets/diskimage-stage2/controller.sh | 5 ++++-
 targets/support/qcow2-install-grub.sh  | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/targets/diskimage-stage2/controller.sh b/targets/diskimage-stage2/controller.sh
index 2c70642c..b676023d 100755
--- a/targets/diskimage-stage2/controller.sh
+++ b/targets/diskimage-stage2/controller.sh
@@ -24,7 +24,10 @@ case $1 in
 		# Install dracut
 		exec_in_chroot ${clst_shdir}/support/pre-distkmerge.sh
 		;;
-
+        run)
+		# We need to install grub's EFI files
+		exec_in_chroot "${clst_shdir}/support/qcow2-install-grub.sh"
+		;;
 	preclean)
 		;;
 

diff --git a/targets/support/qcow2-install-grub.sh b/targets/support/qcow2-install-grub.sh
new file mode 100755
index 00000000..75d98768
--- /dev/null
+++ b/targets/support/qcow2-install-grub.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+source /tmp/chroot-functions.sh
+
+grub-install --verbose --no-floppy --efi-directory=/boot --removable --skip-fs-probe --no-nvram --no-bootsector --target=x86_64-efi || die "grub-install failed"


             reply	other threads:[~2024-10-12 14:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-12 14:54 Andreas K. Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-12 16:13 [gentoo-commits] proj/catalyst:dilfridge/qcow2 commit in: targets/diskimage-stage2/, targets/support/ Andreas K. Hüttel
2024-10-11 20:14 Andreas K. Hüttel
2024-10-05  9:08 Andreas K. Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1728744867.624f99730fbaf744b60fc20d097509d5ae64d13d.dilfridge@gentoo \
    --to=dilfridge@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox