commit:     b936ec7f787176003c8d4be43998fc68843bd56c
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 10 14:22:34 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Aug 14 07:27:22 2024 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=b936ec7f

minor

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

 catalyst/targets/diskimage_stage2.py   |  6 +++---
 targets/diskimage-stage2/controller.sh | 20 +-------------------
 2 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/catalyst/targets/diskimage_stage2.py 
b/catalyst/targets/diskimage_stage2.py
index 83a52a46..e665fb42 100644
--- a/catalyst/targets/diskimage_stage2.py
+++ b/catalyst/targets/diskimage_stage2.py
@@ -88,10 +88,10 @@ class diskimage_stage2(StageBase):
         if "fetch" not in self.settings["options"]:
             self.build_sequence.extend([
                 self.create_diskimage,           # create image file
-                self.open_diskimage,
+                self.open_diskimage,             # loopback or nbd
                 self.make_filesystems,           # partition, make filesystems
-                self.move_into_image,
-                self.bootloader,
+                self.move_into_image,            # move files in
+                self.bootloader,                 # install bootloader (efi 
grub?)
                 self.preclean,
                 self.fsscript,
                 self.rcupdate,

diff --git a/targets/diskimage-stage2/controller.sh 
b/targets/diskimage-stage2/controller.sh
index 210cc767..9cbf6824 100755
--- a/targets/diskimage-stage2/controller.sh
+++ b/targets/diskimage-stage2/controller.sh
@@ -26,12 +26,7 @@ case $1 in
                ;;
 
        preclean)
-               # move over the environment
-               cp -f ${clst_sharedir}/livecd/files/livecd-bashrc \
-                       ${clst_chroot_path}/root/.bashrc
-               cp -f ${clst_sharedir}/livecd/files/livecd-bash_profile \
-                       ${clst_chroot_path}/root/.bash_profile
-               cp -f ${clst_sharedir}/livecd/files/livecd-local.start \
+               cp -f ${clst_sharedir}/diskimage/files/livecd-local.start \
                        ${clst_chroot_path}/etc/conf.d/local.start
                ;;
 
@@ -49,11 +44,6 @@ case $1 in
                ;;
 
        clean)
-               if [ "${clst_diskimage_type}" = "gentoo-release-minimal" ]
-               then
-                       # Clean out man, info and doc files
-                       rm -rf ${clst_chroot_path}/usr/share/{man,doc,info}/*
-               fi
                ;;
 
        bootloader)
@@ -70,14 +60,6 @@ case $1 in
                        # chroot so newer livecd-tools/genkernel can find it 
and unpack it.
                fi
 
-               # Move over the readme (if applicable)
-               if [ -n "${clst_diskimage_readme}" ]
-               then
-                       cp -f ${clst_diskimage_readme} $1/README.txt
-               else
-                       cp -f ${clst_sharedir}/livecd/files/README.txt $1
-               fi
-
                if [ -e ${clst_chroot_path}/boot/memtest86plus/ ]; then
                        cp -rv ${clst_chroot_path}/boot/memtest86plus/* $1
                fi

Reply via email to