Removing support for bootsplash, since it hasn't been in a supported kernel in a...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 20 Feb 2008 16:50:42 +0000 (16:50 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 20 Feb 2008 16:50:42 +0000 (16:50 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1314 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
examples/livecd-stage2_template.spec
examples/stage4_template.spec
modules/livecd_stage2_target.py
targets/support/kmerge.sh
targets/support/livecdfs-update.sh
targets/support/pre-kmerge.sh
targets/support/rc-update.sh

index a3346dfc1d6d8944c101fcb1fbe26c81d8a03428..0816c8b2e9919550982a99efcc937254e6389a85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  20 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+  examples/livecd-stage2_template.spec, examples/stage4_template.spec,
+  modules/livecd_stage2_target.py, targets/support/kmerge.sh,
+  targets/support/livecdfs-update.sh, targets/support/pre-kmerge.sh,
+  targets/support/rc-update.sh:
+  Removing support for bootsplash, since it hasn't been in a supported kernel
+  in a couple years and isn't accepted upstream.
+
   20 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/support/pre-kmerge.sh, targets/tinderbox/tinderbox-chroot.sh:
   Fix up the sed for genkernel so it works on versions both before and after
index 5212014e2bebdaa1672fa60f48c14416a5b4ed89..d6e638e987cf66ec766ba2eeff7a6f18f7e6f792 100644 (file)
@@ -121,15 +121,8 @@ livecd/iso:
 # livecd/fsscript:
 livecd/fsscript:
 
-# The splash type determines the automatic arguments for the bootloader on
-# supported architectures.  The possible options are gensplash and bootsplash.
-# example:
-# livecd/splash_type: gensplash
-livecd/splash_type:
-
-# This is where you set the splash theme.  This theme must be present in either
-# /etc/splash or /etc/bootsplash, depending on your livecd/splash_type, before
-# the kernel has completed building during the livecd-stage2 target.
+# This is where you set the splash theme.  This theme must be present in
+# /etc/splash, before the kernel has completed building.
 # example:
 # livecd/splash_theme: livecd-2006.1
 livecd/splash_theme:
@@ -144,7 +137,7 @@ livecd/bootargs:
 # defined in this target.  It is useful for passing arguments to genkernel that
 # are not otherwise available via the livecd-stage2 spec file.
 # example:
-# livecd/gk_mainargs: --lvm2 --dmraid
+# livecd/gk_mainargs: --lvm --dmraid
 livecd/gk_mainargs:
 
 # This option allows you to specify your own linuxrc script for genkernel to use
@@ -226,13 +219,6 @@ livecd/overlay:
 # livecd/root_overlay:
 livecd/root_overlay:
 
-# This is here to enable udev support in both catalyst and genkernel.  This
-# option requires genkernel >= 3.1.0, and is not needed with genkernel >=3.2.0,
-# as udev is the default.
-# example:
-# livecd/devmanager: udev
-livecd/devmanager:
-
 # This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
 # and is used by the livecd/type gentoo-gamecd and generic-livecd.  While the
 # file will still be copied for any livecd/type, catalyst will only create the
index 5c0869872c28e698bd62cc37b290699e3772005b..e701042554a7dcbeb5520fd945b3d98c04ae0b53 100644 (file)
@@ -106,15 +106,8 @@ stage4/packages:
 # stage4/fsscript:
 stage4/fsscript:
 
-# The splash type determines the automatic arguments for the bootloader on
-# supported architectures.  The possible options are gensplash and bootsplash.
-# example:
-# stage4/splash_type: gensplash
-stage4/splash_type:
-
-# This is where you set the splash theme.  This theme must be present in either
-# /etc/splash or /etc/bootsplash, depending on your stage4/splash_type, before
-# the kernel has completed building during the stage4-stage2 target.
+# This is where you set the splash theme.  This theme must be present in
+# /etc/splash, before the kernel has completed building.
 # example:
 # stage4/splash_theme: livecd-2006.1
 stage4/splash_theme:
@@ -123,7 +116,7 @@ stage4/splash_theme:
 # defined in this target.  It is useful for passing arguments to genkernel that
 # are not otherwise available via the stage4-stage2 spec file.
 # example:
-# stage4/gk_mainargs: --lvm2 --dmraid
+# stage4/gk_mainargs: --lvm --dmraid
 stage4/gk_mainargs:
 
 # This option allows you to specify your own linuxrc script for genkernel to use# when building your CD.  This is not checked for functionality, so it is up to
@@ -176,13 +169,6 @@ stage4/rcdel:
 # stage4/root_overlay:
 stage4/root_overlay:
 
-# This is here to enable udev support in both catalyst and genkernel.  This
-# option requires genkernel >= 3.1.0, and is not needed with genkernel >=3.2.0,
-# as udev is the default.
-# example:
-# stage4/devmanager: udev
-stage4/devmanager:
-
 # This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
 # and is used by the stage4/type gentoo-gamecd and generic-livecd.  While the
 # file will still be copied for any stage4/type, catalyst will only create the
@@ -262,11 +248,11 @@ stage4/unmerge:
 # rid of files that don't belong to a particular package, or removing files from
 # a package that you wish to keep, but won't need the full functionality.
 # example:
-# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /root/.ccache /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/bootsplash/gentoo /etc/bootsplash/gentoo-highquality /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel
+# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /root/.ccache /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel
 stage4/empty:
 
 # This option tells catalyst to clean specific files from the filesystem and is
 # very usefu in cleaning up stray files in /etc left over after stage4/unmerge.
 # example:
-# stage4/rm: /lib/*.a /usr/lib/*.a /usr/lib/gcc-lib/*/*/libgcj* /etc/dispatch-conf.conf /etc/etc-update.conf /etc/*- /etc/issue* /etc/make.conf /etc/man.conf /etc/*.old /root/.viminfo /usr/sbin/bootsplash* /usr/sbin/fb* /usr/sbin/fsck.cramfs /usr/sbin/fsck.minix /usr/sbin/mkfs.minix /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /lib/security/pam_access.so /lib/security/pam_chroot.so /lib/security/pam_debug.so /lib/security/pam_ftp.so /lib/security/pam_issue.so /lib/security/pam_mail.so /lib/security/pam_motd.so /lib/security/pam_mkhomedir.so /lib/security/pam_postgresok.so /lib/security/pam_rhosts_auth.so /lib/security/pam_userdb.so /usr/share/consolefonts/1* /usr/share/consolefonts/7* /usr/share/consolefonts/8* /usr/share/consolefonts/9* /usr/share/consolefonts/A* /usr/share/consolefonts/C* /usr/share/consolefonts/E* /usr/share/consolefonts/G* /usr/share/consolefonts/L* /usr/share/consolefonts/M* /usr/share/consolefonts/R* /usr/share/consolefonts/a* /usr/share/consolefonts/c* /usr/share/consolefonts/dr* /usr/share/consolefonts/g* /usr/share/consolefonts/i* /usr/share/consolefonts/k* /usr/share/consolefonts/l* /usr/share/consolefonts/r* /usr/share/consolefonts/s* /usr/share/consolefonts/t* /usr/share/consolefonts/v* /etc/splash/livecd-2006.1/16* /etc/splash/livecd-2006.1/12* /etc/splash/livecd-2006.1/6* /etc/splash/livecd-2006.1/8* /etc/splash/livecd-2006.1/images/silent-16* /etc/splash/livecd-2006.1/images/silent-12* /etc/splash/livecd-2006.1/images/silent-6* /etc/splash/livecd-2006.1/images/silent-8* /etc/splash/livecd-2006.1/images/verbose-16* /etc/splash/livecd-2006.1/images/verbose-12* /etc/splash/livecd-2006.1/images/verbose-6* /etc/splash/livecd-2006.1/images/verbose-8* /etc/make.conf.example /etc/make.globals /etc/resolv.conf
+# stage4/rm: /lib/*.a /usr/lib/*.a /usr/lib/gcc-lib/*/*/libgcj* /etc/dispatch-conf.conf /etc/etc-update.conf /etc/*- /etc/issue* /etc/make.conf /etc/man.conf /etc/*.old /root/.viminfo /usr/sbin/fb* /usr/sbin/fsck.cramfs /usr/sbin/fsck.minix /usr/sbin/mkfs.minix /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /lib/security/pam_access.so /lib/security/pam_chroot.so /lib/security/pam_debug.so /lib/security/pam_ftp.so /lib/security/pam_issue.so /lib/security/pam_mail.so /lib/security/pam_motd.so /lib/security/pam_mkhomedir.so /lib/security/pam_postgresok.so /lib/security/pam_rhosts_auth.so /lib/security/pam_userdb.so /usr/share/consolefonts/1* /usr/share/consolefonts/7* /usr/share/consolefonts/8* /usr/share/consolefonts/9* /usr/share/consolefonts/A* /usr/share/consolefonts/C* /usr/share/consolefonts/E* /usr/share/consolefonts/G* /usr/share/consolefonts/L* /usr/share/consolefonts/M* /usr/share/consolefonts/R* /usr/share/consolefonts/a* /usr/share/consolefonts/c* /usr/share/consolefonts/dr* /usr/share/consolefonts/g* /usr/share/consolefonts/i* /usr/share/consolefonts/k* /usr/share/consolefonts/l* /usr/share/consolefonts/r* /usr/share/consolefonts/s* /usr/share/consolefonts/t* /usr/share/consolefonts/v* /etc/splash/livecd-2006.1/16* /etc/splash/livecd-2006.1/12* /etc/splash/livecd-2006.1/6* /etc/splash/livecd-2006.1/8* /etc/splash/livecd-2006.1/images/silent-16* /etc/splash/livecd-2006.1/images/silent-12* /etc/splash/livecd-2006.1/images/silent-6* /etc/splash/livecd-2006.1/images/silent-8* /etc/splash/livecd-2006.1/images/verbose-16* /etc/splash/livecd-2006.1/images/verbose-12* /etc/splash/livecd-2006.1/images/verbose-6* /etc/splash/livecd-2006.1/images/verbose-8* /etc/make.conf.example /etc/make.globals /etc/resolv.conf
 stage4/rm:
index 9ce6334de8a4c3979b1f8ebf4bf8b7f9f95412ba..5bd495a4c38d6dfe860463478c11b316e8980a01 100644 (file)
@@ -28,6 +28,9 @@ class livecd_stage2_target(generic_stage_target):
                if not self.settings.has_key("livecd/type"):
                        self.settings["livecd/type"] = "generic-livecd"
 
+               if self.settings.has_key("livecd/splash_type"):
+                       print "Using livecd/splash_type is deprecated as we no longer support bootsplash."
+
                file_locate(self.settings, ["cdtar","controller_file"])
        
        def set_source_path(self):
index 111d374241edcd37669f9b080bb1622f3de98e6f..74b2c45bbbbeef5b3a82df96827f304653b84627 100755 (executable)
@@ -6,7 +6,7 @@ source /tmp/chroot-functions.sh
 
 check_genkernel_version
 
-mkdir -p /tmp/kerncache
+install -d /tmp/kerncache
 PKGDIR=/tmp/kerncache/${clst_kname}/ebuilds
 
 setup_gk_args() {
@@ -25,14 +25,19 @@ setup_gk_args() {
                GK_ARGS="${GK_ARGS} --kerncache=/tmp/kerncache/${clst_kname}-kerncache-${clst_version_stamp}.tar.bz2"
        fi
 
-       if [ "${clst_splash_type}" == "bootsplash" -a -n "${clst_splash_theme}" ]
+       if [ -n "${clst_splash_theme}" ]
        then
-               GK_ARGS="${GK_ARGS} --bootsplash=${clst_splash_theme}"
-       fi
-       
-       if [ "${clst_splash_type}" == "gensplash" -a -n "${clst_splash_theme}" ]
-       then
-               GK_ARGS="${GK_ARGS} --gensplash=${clst_splash_theme}"
+               GK_ARGS="${GK_ARGS} --splash=${clst_splash_theme}"
+               # Setup case structure for livecd_type
+               case ${clst_livecd_type} in
+                       gentoo-release-minimal|gentoo-release-universal)
+                               case ${clst_hostarch} in
+                                       amd64|x86)
+                                               GK_ARGS="${GK_ARGS} --splash-res=1024x768"
+                                       ;;
+                               esac
+                       ;;
+               esac
        fi
 
        if [ -d "/tmp/initramfs_overlay/${clst_initramfs_overlay}" ]
index 2829a05850e571666aa1522b5c642acef1a5e6f8..d73efd849bd8c19c22693603413ecb70a066e552 100755 (executable)
@@ -190,22 +190,8 @@ esac
 
 rm -f /etc/generic.motd.txt /etc/universal.motd.txt /etc/minimal.motd.txt /etc/livecd.motd.txt /etc/gamecd.motd.txt
 
-# Setup splash/bootsplash (if called for)
-if [ "${clst_livecd_splash_type}" == "bootsplash" -a -n \
-       "${clst_livecd_splash_theme}" ]
-then
-       if [ -d /etc/bootsplash/${clst_livecd_splash_theme} ]
-       then
-               sed -i 's:BOOTSPLASH_THEME=\"gentoo\":BOOTSPLASH_THEME=\"${clst_livecd_splash_theme}\":' /etc/conf.d/bootsplash
-               rm -f /etc/bootsplash/default
-               ln -s "/etc/bootsplash/${clst_livecd_splash_theme}" \
-                       /etc/bootsplash/default
-       else
-               echo "Error, cannot setup bootsplash theme ${clst_livecd_splash_theme}"
-               exit 1
-       fi
-elif [ "${clst_livecd_splash_type}" == "gensplash" -a -n \
-       "${clst_livecd_splash_theme}" ]
+# Setup splash (if called for)
+if [ -n "${clst_livecd_splash_theme}" ]
 then
        if [ -d /etc/splash/${clst_livecd_splash_theme} ]
        then
index b73e96a8671456c672f898eed7ea3ca62ffa86fc..1876feea010c27572675339cc71da7acfa2e96e4 100755 (executable)
@@ -2,27 +2,12 @@
 
 source /tmp/chroot-functions.sh
 
+run_emerge --oneshot genkernel
+install -d /tmp/kerncache
+
 case ${clst_target} in
        livecd*|stage4)
-               run_emerge --oneshot genkernel
-               install -d /tmp/kerncache
 
-               # Setup case structure for livecd_type
-               case ${clst_livecd_type} in
-                       gentoo-release-minimal | gentoo-release-universal)
-                               case ${clst_hostarch} in
-                                       amd64|x86)
-                                               if [ -x /usr/share/genkernel/genkernel ]
-                                               then
-                                                       gk=/usr/share/genkernel/genkernel
-                                               else
-                                                       gk=/usr/bin/genkernel
-                                               fi
-                                               sed -i 's/initramfs_data.cpio.gz /initramfs_data.cpio.gz -r 1024x768 /' ${gk}
-                                       ;;
-                               esac
-                       ;;
-               esac
        ;;
 
        netboot2)
index fdac323c5f994177bb2caae566f0d607b6ec6653..748cb22fca4c1220c1464d396196291d58a4a408 100644 (file)
@@ -18,7 +18,6 @@ then
        rc-update del consolefont
        # We need to add this one, unconditionally
        rc-update add autoconfig default
-       [[ -e /etc/init.d/bootsplash ]] && rc-update add bootsplash default
        [[ -e /etc/init.d/splash ]] && rc-update add splash default
        [[ -e /etc/init.d/fbcondecor ]] && rc-update add fbcondecor default
        [[ -e /etc/init.d/sysklogd ]] && rc-update add sysklogd default