Moved xinitrc to after livecdfs-update to allow for changing the xinitrc to a custom...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 20 Apr 2005 21:31:15 +0000 (21:31 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 20 Apr 2005 21:31:15 +0000 (21:31 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@617 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/livecd-stage2/livecd-stage2-controller.sh
targets/support/livecdfs-update.sh

index 6e9a4f397e664ba694bf1996d8c3ddd1cbf69af4..e9a9a7f5fa75e33403aac1960b19757dcbc15849 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.229 2005/04/20 21:14:35 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.230 2005/04/20 21:31:15 wolf31o2 Exp $
+
+  20 Apr 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/livecd-stage2/livecd-stage2-controller.sh,
+  targets/support/livecdfs-update.sh:
+  Moved xinitrc to after livecdfs-update to allow for changing the xinitrc to
+  a custom one if livecd/type is gentoo-gamecd. Added more default setup to
+  livecdfs-update.sh for livecd/type: gentoo-gamecd, gentoo-release-livecd,
+  and generic-livecd.
 
   20 Apr 2005; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/livecd-stage2/livecd-stage2-controller.sh,
index a9e5ea6c69dfcad61119fad1421d2958e73624df..fc3089892c86fb6389f4b2859bcd4ebb0282c29d 100755 (executable)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.6 2005/04/20 21:14:35 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.7 2005/04/20 21:31:15 wolf31o2 Exp $
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
 
@@ -34,12 +34,6 @@ case $1 in
                                ${clst_chroot_path}/etc
                fi
        
-               # move over the xinitrc (if applicable)
-               if [ -n "${clst_livecd_xinitrc}" ]
-               then
-                       cp -a ${clst_livecd_xinitrc} ${clst_chroot_path}/etc/X11/xinit/xinitrc
-               fi
-
                # move over the environment
                cp ${clst_sharedir}/livecd/files/livecd-bashrc \
                        ${clst_chroot_path}/root/.bashrc
@@ -65,6 +59,13 @@ case $1 in
 
                # now, finalize and tweak the livecd fs (inside of the chroot)
                exec_in_chroot  ${clst_sharedir}/targets/support/livecdfs-update.sh
+
+               # move over the xinitrc (if applicable)
+               # this is moved here, so we can override any default xinitrc
+               if [ -n "${clst_livecd_xinitrc}" ]
+               then
+                       cp -a ${clst_livecd_xinitrc} ${clst_chroot_path}/etc/X11/xinit/xinitrc
+               fi
                ;;
 
        rc-update)
index 6f237f228151bf1e415f33bd91ec9886043b2b4b..2436ec4aafd7eec666b61c101d30a30d664d0746 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.9 2005/04/20 20:29:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.10 2005/04/20 21:31:15 wolf31o2 Exp $
 
 /usr/sbin/env-update
 source /etc/profile
@@ -220,10 +220,33 @@ case ${clst_livecd_type} in
                    echo "exec ${GAME_EXECUTABLE}" > /etc/X11/xinit/xinitrc
                fi
 
+               # This is my hack to reduce tmpfs usage
+               mkdir -p /usr/livecd/db/pkg/x11-base
+               mv -f /var/db/pkg/x11-base/xorg* /usr/livecd/db/pkg/x11-base
+               rm -rf /var/db
+
                touch /etc/startx
-       ;;
+               ;;
+       gentoo-release-livecd )
+               # first we setup the livecd-kernel package
+               if [ -e /opt/installer/misc/mkvardb ]
+               then
+                       chmod +x /opt/installer/misc/mkvardb
+                       /opt/installer/misc/mkvardb -p livecd-kernel -c sys-kernel -v 2005.0 /boot/kernel* /boot/initrd* $(for i in $(find "/lib/modules/$(uname -r)" -type f); do grep --quiet "${i}" /var/db/pkg/*/*/CONTENTS || echo ${i}; done)
+               fi
+
+               # This is my hack to reduce tmpfs usage
+               mkdir -p /usr/livecd
+               mv -f /usr/portage/profiles /usr/livecd
+               rm -rf /usr/livecd/profiles/{co*,default-{1*,a*,b*,d*,h*,i*,m*,p*,s*,x*},g*,hardened-*,n*,x*}
+               mv -f /etc/gconf /usr/livecd
+               mv -f /var/db /usr/livecd
        generic-livecd )
+               # This is my hack to reduce tmpfs usage
+               mkdir -p /usr/livecd
+               mv -f /etc/gconf /usr/livecd
+
                touch /etc/startx
-       ;;
+               ;;
 esac