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

Reply via email to