diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-10-13 16:36:39 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-10-13 16:36:39 +0200 |
commit | 8449663ffee7bfdae5209919ec2171d47709847b (patch) | |
tree | 3ad9c0cb82a96a4d50a0b8629c13a29691a2974e | |
parent | Clone stagebase logic from iso to qcow2 (mostly) (diff) | |
download | catalyst-8449663ffee7bfdae5209919ec2171d47709847b.tar.gz catalyst-8449663ffee7bfdae5209919ec2171d47709847b.tar.bz2 catalyst-8449663ffee7bfdae5209919ec2171d47709847b.zip |
Clone livecd-stage1 to diskimage-stage1, barely any changes
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-x | targets/diskimage-stage1/chroot.sh | 5 | ||||
-rwxr-xr-x | targets/diskimage-stage1/controller.sh | 16 | ||||
-rwxr-xr-x | targets/diskimage-stage1/preclean-chroot.sh | 5 |
3 files changed, 26 insertions, 0 deletions
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 |