public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/catalyst:master commit in: targets/diskimage-stage1/
@ 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:     8449663ffee7bfdae5209919ec2171d47709847b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 14:36:39 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 14:36:39 2024 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=8449663f

Clone livecd-stage1 to diskimage-stage1, barely any changes

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

 targets/diskimage-stage1/chroot.sh          |  5 +++++
 targets/diskimage-stage1/controller.sh      | 16 ++++++++++++++++
 targets/diskimage-stage1/preclean-chroot.sh |  5 +++++
 3 files changed, 26 insertions(+)

diff --git a/targets/diskimage-stage1/chroot.sh b/targets/diskimage-stage1/chroot.sh
new file mode 100755
index 00000000..d143927e
--- /dev/null
+++ b/targets/diskimage-stage1/chroot.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+source /tmp/chroot-functions.sh
+
+run_merge --update --deep --newuse "${clst_packages}"

diff --git a/targets/diskimage-stage1/controller.sh b/targets/diskimage-stage1/controller.sh
new file mode 100755
index 00000000..1e27237b
--- /dev/null
+++ b/targets/diskimage-stage1/controller.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+source ${clst_shdir}/support/functions.sh
+
+## START RUNSCRIPT
+
+case $1 in
+	build_packages)
+		shift
+		export clst_packages="$*"
+		mkdir -p ${clst_chroot_path}/tmp
+		exec_in_chroot \
+			${clst_shdir}/${clst_target}/chroot.sh
+		;;
+esac
+exit $?

diff --git a/targets/diskimage-stage1/preclean-chroot.sh b/targets/diskimage-stage1/preclean-chroot.sh
new file mode 100755
index 00000000..5353f67d
--- /dev/null
+++ b/targets/diskimage-stage1/preclean-chroot.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+source /tmp/chroot-functions.sh
+
+cleanup_stages


^ 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-stage1/ 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