From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/diskimage-stage2/
Date: Sun, 13 Oct 2024 20:33:50 +0000 (UTC) [thread overview]
Message-ID: <1728851429.851ca7dd8ee9cbd2ba8fb2fe06b5434c230ae767.dilfridge@gentoo> (raw)
commit: 851ca7dd8ee9cbd2ba8fb2fe06b5434c230ae767
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 14:37:12 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 20:30:29 2024 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=851ca7dd
Add controller for diskimage-stage2
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
targets/diskimage-stage2/controller.sh | 56 ++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/targets/diskimage-stage2/controller.sh b/targets/diskimage-stage2/controller.sh
new file mode 100755
index 00000000..b168e98c
--- /dev/null
+++ b/targets/diskimage-stage2/controller.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+source ${clst_shdir}/support/functions.sh
+
+case $1 in
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh
+ ;;
+
+ kernel)
+ shift
+ export kname="$1"
+
+ [ -n "${clst_linuxrc}" ] && \
+ copy_to_chroot ${clst_linuxrc} /tmp/linuxrc
+ exec_in_chroot ${clst_shdir}/support/kmerge.sh
+ delete_from_chroot /tmp/linuxrc
+
+ extract_modules ${clst_chroot_path} ${kname}
+ ;;
+
+ pre-distkmerge)
+ # Install dracut
+ exec_in_chroot ${clst_shdir}/support/pre-distkmerge.sh
+ ;;
+ preclean)
+ ;;
+
+ diskimage-update)
+ # We need to install grub's EFI files and do very basic configuration
+ exec_in_chroot ${clst_shdir}/support/diskimagefs-update.sh
+ ;;
+
+ rc-update)
+ exec_in_chroot ${clst_shdir}/support/rc-update.sh
+ ;;
+ fsscript)
+ exec_in_chroot ${clst_fsscript}
+ ;;
+
+ clean)
+ ;;
+
+ unmerge)
+ [ "${clst_diskimage_depclean}" != "no" ] && exec_in_chroot ${clst_shdir}/support/depclean.sh
+ shift
+ export clst_packages="$*"
+ exec_in_chroot ${clst_shdir}/support/unmerge.sh
+ ;;
+ qcow2)
+ shift
+ ${clst_shdir}/support/create-qcow2.sh $1
+ ;;
+esac
+exit $?
reply other threads:[~2024-10-13 20:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1728851429.851ca7dd8ee9cbd2ba8fb2fe06b5434c230ae767.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