[gentoo-commits] proj/catalyst:master commit in: targets/stage4/, targets/support/, doc/, catalyst/targets/, ...

2022-11-17 Thread Matt Turner
commit: 48afec3f942e6f2903609204d8cf3497064c5e22
Author: Matt Turner  gentoo  org>
AuthorDate: Tue Nov 15 02:39:57 2022 +
Commit: Matt Turner  gentoo  org>
CommitDate: Thu Nov 17 23:41:05 2022 +
URL:https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=48afec3f

catalyst: Drop livecd/{xinitrc,xsession,xdm}

This is functionality better implemented in fsscripts outside of
catalyst.

Signed-off-by: Matt Turner  gentoo.org>

 catalyst/targets/livecd_stage2.py|  3 --
 doc/catalyst-spec.5.txt  | 20 
 examples/livecd-stage2_template.spec | 24 --
 examples/stage4_template.spec| 10 --
 livecd/files/livecd.motd.txt |  3 --
 targets/livecd-stage2/controller.sh  |  9 --
 targets/stage4/controller.sh |  8 -
 targets/support/livecdfs-update.sh   | 63 +---
 8 files changed, 1 insertion(+), 139 deletions(-)

diff --git a/catalyst/targets/livecd_stage2.py 
b/catalyst/targets/livecd_stage2.py
index 832e0998..1a798a1e 100644
--- a/catalyst/targets/livecd_stage2.py
+++ b/catalyst/targets/livecd_stage2.py
@@ -39,9 +39,6 @@ class livecd_stage2(StageBase):
 "livecd/users",
 "livecd/verify",
 "livecd/volid",
-"livecd/xdm",
-"livecd/xinitrc",
-"livecd/xsession",
 "repos",
 ])
 

diff --git a/doc/catalyst-spec.5.txt b/doc/catalyst-spec.5.txt
index 10eb0bb8..fd2926fb 100644
--- a/doc/catalyst-spec.5.txt
+++ b/doc/catalyst-spec.5.txt
@@ -389,26 +389,6 @@ This is typically used for adding the documentation, 
distfiles,
 snapshots, and stages to the official media.  These files will not be
 available if `docache` is enabled, as they are outside the loop.
 
-*/xinitrc*::
-This is used by catalyst to copy the specified file to
-`/etc/X11/xinit/xinitrc` and is used by the */type*
-`generic-livecd`.  While the file will still be copied for any
-*/type*, catalyst will only create the necessary `/etc/startx`
-for those types, so X will not be automatically started.  This is
-useful also for setting up X on a CD where you do not wish X to start
-automatically.  We do not use this on the release media.  This setting
-is supported by the `stage4` and `livecd` targets.
-
-*livecd/xdm*::
-This is used by catalyst to determine which display manager you wish
-to become the default (example: `gdm`).  This is used on the official
-Gentoo LiveCD and is valid for any `livecd/type`.
-
-*livecd/xsession*::
-This is used by catalyst to determine which X session should be
-started by default by the display manager (example: `gnome`).  This is
-used on the official Gentoo LiveCD and is valid for any livecd/type.
-
 */users*::
 This option is used to create non-root users on your target.  It takes
 a space separated list of user names.  These users will be added to

diff --git a/examples/livecd-stage2_template.spec 
b/examples/livecd-stage2_template.spec
index 8db17ed7..adf0acaf 100644
--- a/examples/livecd-stage2_template.spec
+++ b/examples/livecd-stage2_template.spec
@@ -202,30 +202,6 @@ livecd/overlay:
 # livecd/root_overlay:
 livecd/root_overlay:
 
-# This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
-# and is used by the livecd/type and generic-livecd.  While the file will still
-# be copied for any livecd/type, catalyst will only create the necessary
-# /etc/startx for those types, so X will not be automatically started.  This is
-# useful also for setting up X on a CD where you do not wish X to start
-# automatically.  We do not use this on the release media, so it is left blank.
-# example:
-# livecd/xinitrc:
-livecd/xinitrc:
-
-# This is used by catalyst to determine which display manager you wish to
-# become the default.  This is used on the official Gentoo LiveCD and is valid
-# for any livecd/type.
-# example:
-# livecd/xdm: gdm
-livecd/xdm:
-
-# This is used by catalyst to determine which X session should be started by
-# default by the display manager.  This is used on the official Gentoo LiveCD
-# and is valid for any livecd/type.
-# example:
-# livecd/xsession: gnome
-livecd/xsession:
-
 # This option is used to create non-root users on your CD.  It takes a space
 # separated list of user names.  These users will be added to the following
 # groups: users,wheel,audio,games,cdrom,usb

diff --git a/examples/stage4_template.spec b/examples/stage4_template.spec
index 5d9a390c..a7a3e766 100644
--- a/examples/stage4_template.spec
+++ b/examples/stage4_template.spec
@@ -161,16 +161,6 @@ stage4/rcdel:
 # stage4/root_overlay:
 stage4/root_overlay:
 
-# This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
-# and is used by the stage4/type generic-livecd.  While the file will still be
-# copied for any stage4/type, catalyst will only create the necessary
-# /etc/startx for those types, so X will not be automatically started.  This is
-# useful also for setting up X on a CD where you do not wish X to 

[gentoo-commits] proj/catalyst:master commit in: targets/stage4/, targets/support/

2020-05-04 Thread Matt Turner
commit: 6f0a3315dd29b6260868b5469da815cff7d7bbd0
Author: Matt Turner  gentoo  org>
AuthorDate: Fri May  1 06:50:24 2020 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon May  4 02:43:00 2020 +
URL:https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=6f0a3315

targets: Remove unused extract_kernel()

Evidently the answer to "Do we need this one?" is... not at least since
2006.

Signed-off-by: Matt Turner  gentoo.org>

 targets/stage4/controller.sh |  2 --
 targets/support/functions.sh | 32 
 2 files changed, 34 deletions(-)

diff --git a/targets/stage4/controller.sh b/targets/stage4/controller.sh
index 85db8c1b..7ca3e9bc 100755
--- a/targets/stage4/controller.sh
+++ b/targets/stage4/controller.sh
@@ -30,8 +30,6 @@ case $1 in
delete_from_chroot /tmp/linuxrc
 
extract_modules ${clst_chroot_path} ${clst_kname}
-   # Do we need this one?
-#  extract_kernel ${clst_chroot_path}/boot ${clst_kname}
;;
 
build_packages)

diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index ac6710ad..dd9e6b12 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -184,35 +184,3 @@ extract_modules() {
echo "Can't find kernel modules tarball at ${kmodules}.  
Skipping"
fi
 }
-extract_kernel() {
-   # $1 = Destination
-   # $2 = kname
-
-   
kbinary="${clst_chroot_path}/tmp/kerncache/${2}-kernel-initrd-${clst_version_stamp}.tar.bz2"
-   [ ! -e "${kbinary}" ] && die "Can't find kernel tarball at ${kbinary}"
-   mkdir -p ${1}/
-   tar -I lbzip2 -xf ${kbinary} -C ${1}/
-   # change config name from "config-*" to "gentoo", for example
-   #mv ${1}/config-* ${1}/${2}-config
-   rm ${1}/config-*
-
-   # change kernel name from "kernel" to "gentoo", for example
-   if [ -e ${1}/kernel-* ]
-   then
-   mv ${1}/kernel-* ${1}/${2}
-   fi
-   if [ -e ${1}/vmlinuz-* ]
-   then
-   mv ${1}/vmlinuz-* ${1}/${2}
-   fi
-
-   # change initrd name from "initrd" to "gentoo.igz", for example
-   if [ -e ${1}/initrd-* ]
-   then
-   mv ${1}/initrd-* ${1}/${2}.igz
-   fi
-   if [ -e ${1}/initramfs-* ]
-   then
-   mv ${1}/initramfs-* ${1}/${2}.igz
-   fi
-}



[gentoo-commits] proj/catalyst:master commit in: targets/stage4/, targets/support/

2015-09-02 Thread Richard Farina
commit: e8ee4a518a2dc48d845e2f6bd09e0ce2cc62996e
Author: Rick Farina (Zero_Chaos)  gentoo  org>
AuthorDate: Thu Sep  3 01:46:06 2015 +
Commit: Richard Farina  gentoo  org>
CommitDate: Thu Sep  3 01:46:06 2015 +
URL:https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e8ee4a51

use the cleanup_stage function instead of manual cleanup for stage4, do not 
wipe log directories for tinderbox

 targets/stage4/stage4-preclean-chroot.sh | 10 +-
 targets/support/chroot-functions.sh  |  2 +-
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/targets/stage4/stage4-preclean-chroot.sh 
b/targets/stage4/stage4-preclean-chroot.sh
index 8f2e894..a22b6c1 100755
--- a/targets/stage4/stage4-preclean-chroot.sh
+++ b/targets/stage4/stage4-preclean-chroot.sh
@@ -7,12 +7,4 @@ source /tmp/chroot-functions.sh
 update_env_settings
 show_debug
 
-if [ -n "${clst_DISTCC}" ]
-then
-   cleanup_distcc
-fi
-
-if [ -n "${clst_ICECREAM}" ]
-then
-   cleanup_icecream
-fi
+cleanup_stages

diff --git a/targets/support/chroot-functions.sh 
b/targets/support/chroot-functions.sh
index b8ab8d2..2986ae7 100755
--- a/targets/support/chroot-functions.sh
+++ b/targets/support/chroot-functions.sh
@@ -234,7 +234,7 @@ cleanup_stages() {
# Remove bindist from use
sed -i "/USE=\"\${USE} bindist\"/d" "${clst_make_conf}"
 
-   rm -f /var/log/emerge.log /var/log/portage/elog/*
+   [ "${clst_target}" != "tinderbox" ] && rm -f /var/log/emerge.log 
/var/log/portage/elog/*
 }
 
 update_env_settings(){