public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/catalyst:master commit in: targets/diskimage-stage2/
@ 2024-10-13 20:33 Andreas K. Hüttel
  0 siblings, 0 replies; only message in thread
From: Andreas K. Hüttel @ 2024-10-13 20:33 UTC (permalink / raw
  To: gentoo-commits

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 $?


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-13 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-13 20:33 [gentoo-commits] proj/catalyst:master commit in: targets/diskimage-stage2/ Andreas K. Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox