From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:dilfridge/qcow2 commit in: targets/support/
Date: Sat, 12 Oct 2024 16:43:01 +0000 (UTC) [thread overview]
Message-ID: <1728751369.9f20a1656c37b0c4d9fcb2505e2e80b9aa8d8a8b.dilfridge@gentoo> (raw)
commit: 9f20a1656c37b0c4d9fcb2505e2e80b9aa8d8a8b
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 12 16:42:49 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Oct 12 16:42:49 2024 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=9f20a165
Really install grub
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
targets/support/create-qcow2.sh | 18 ++++++++----------
targets/support/qcow2-grub-install.sh | 5 ++---
2 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/targets/support/create-qcow2.sh b/targets/support/create-qcow2.sh
index dfc1309a..06e1ec39 100755
--- a/targets/support/create-qcow2.sh
+++ b/targets/support/create-qcow2.sh
@@ -43,10 +43,10 @@ qcow2die() {
echo "Something went wrong. Cleaning up..."
# here we just ignore errors
- umount "${mymountpoint}/proc"
- umount "${mymountpoint}/sys"
- umount "${mymountpoint}/dev"
- umount "${mymountpoint}/run"
+ umount -R "${mymountpoint}/proc"
+ umount -R "${mymountpoint}/sys"
+ umount -R "${mymountpoint}/dev"
+ umount -R "${mymountpoint}/run"
umount "${mydevice}p1"
umount "${mydevice}p2"
@@ -85,10 +85,10 @@ exec_in_qcow2() {
rm -f "${mymountpoint}/tmp/chroot-functions.sh" || qcow2die
# cleanup qcow2 dir
- umount "${mymountpoint}/proc" || qcow2die
- umount "${mymountpoint}/sys" || qcow2die
- umount "${mymountpoint}/dev" || qcow2die
- umount "${mymountpoint}/run" || qcow2die
+ umount -R "${mymountpoint}/proc" || qcow2die
+ umount -R "${mymountpoint}/sys" || qcow2die
+ umount -R "${mymountpoint}/dev" || qcow2die
+ umount -R "${mymountpoint}/run" || qcow2die
}
@@ -138,8 +138,6 @@ echo "Copying files into the mounted directories from ${clst_stage_path}"
cp -a "${clst_stage_path}"/* "${mymountpoint}/" || qcow2die "Could not copy content into mounted image"
# now we can chroot in and install grub
-#/usr/sbin/grub-install --verbose --no-floppy --efi-directory=/boot --removable --skip-fs-probe \
-# --no-nvram --no-bootsector --target=x86_64-efi || die "grub-install failed"
exec_in_qcow2 "${clst_shdir}/support/qcow2-grub-install.sh"
echo "Creating a CONTENTS file ${myqcow2}.CONTENTS"
diff --git a/targets/support/qcow2-grub-install.sh b/targets/support/qcow2-grub-install.sh
index e1bda92b..31194262 100755
--- a/targets/support/qcow2-grub-install.sh
+++ b/targets/support/qcow2-grub-install.sh
@@ -2,6 +2,5 @@
source /tmp/chroot-functions.sh
-# install the boot loader here
-
-/bin/bash
+# install the boot loader
+grub-install --no-floppy --efi-directory=/boot --removable --skip-fs-probe --no-nvram --no-bootsector --target=x86_64-efi
next reply other threads:[~2024-10-12 16:43 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-12 16:43 Andreas K. Hüttel [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-13 13:35 [gentoo-commits] proj/catalyst:dilfridge/qcow2 commit in: targets/support/ Andreas K. Hüttel
2024-10-13 13:35 Andreas K. Hüttel
2024-10-13 13:02 Andreas K. Hüttel
2024-10-13 12:43 Andreas K. Hüttel
2024-10-12 22:56 Andreas K. Hüttel
2024-10-12 22:18 Andreas K. Hüttel
2024-10-12 22:06 Andreas K. Hüttel
2024-10-12 22:06 Andreas K. Hüttel
2024-10-12 21:58 Andreas K. Hüttel
2024-10-12 21:39 Andreas K. Hüttel
2024-10-12 21:39 Andreas K. Hüttel
2024-10-12 21:15 Andreas K. Hüttel
2024-10-12 20:48 Andreas K. Hüttel
2024-10-12 19:01 Andreas K. Hüttel
2024-10-12 17:58 Andreas K. Hüttel
2024-10-12 17:52 Andreas K. Hüttel
2024-10-12 16:29 Andreas K. Hüttel
2024-10-12 15:18 Andreas K. Hüttel
2024-10-12 14:54 Andreas K. Hüttel
2024-10-12 14:29 Andreas K. Hüttel
2024-10-11 23:09 Andreas K. Hüttel
2024-10-11 23:01 Andreas K. Hüttel
2024-10-11 22:51 Andreas K. Hüttel
2024-10-11 22:28 Andreas K. Hüttel
2024-10-11 22:28 Andreas K. Hüttel
2024-10-11 22:07 Andreas K. Hüttel
2024-10-11 22:07 Andreas K. Hüttel
2024-10-11 20:14 Andreas K. Hüttel
2024-10-06 21:57 Andreas K. Hüttel
2024-10-06 20:41 Andreas K. Hüttel
2024-10-06 19:33 Andreas K. Hüttel
2024-10-05 19:15 Andreas K. Hüttel
2024-10-05 15:48 Andreas K. Hüttel
2024-10-02 21:47 Andreas K. Hüttel
2024-09-27 23:45 Andreas K. Hüttel
2024-09-27 23:04 Andreas K. Hüttel
2024-08-09 19:34 Andreas K. Hüttel
2024-08-09 19:34 Andreas K. Hüttel
2024-08-09 19:34 Andreas K. Hüttel
2024-08-09 19:34 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=1728751369.9f20a1656c37b0c4d9fcb2505e2e80b9aa8d8a8b.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