From 4e8e973cbe221b9d14bbbd160b36ceef8c5cb502 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Mon, 13 Mar 2006 16:33:20 +0000 Subject: [PATCH] Finalized the sync from my fsscript for 2006.0 into catalyst. It is now no longer necessary to use a fsscript to duplicate the official Gentoo LiveCD builds. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1097 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 8 ++++- targets/support/livecdfs-update.sh | 54 ++++++++++++++++++++++++++++-- 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b7d889e..ab0b0b28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.582 2006/03/12 19:03:34 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.583 2006/03/13 16:33:20 wolf31o2 Exp $ + + 13 Mar 2006; Chris Gianelloni + targets/support/livecdfs-update.sh: + Finalized the sync from my fsscript for 2006.0 into catalyst. It is now no + longer necessary to use a fsscript to duplicate the official Gentoo LiveCD + builds. 12 Mar 2006; Chris Gianelloni targets/support/rc-update.sh: diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh index b8817a6c..fb75ef02 100755 --- a/targets/support/livecdfs-update.sh +++ b/targets/support/livecdfs-update.sh @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 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.39 2006/02/21 19:50:22 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.40 2006/03/13 16:33:20 wolf31o2 Exp $ . /tmp/chroot-functions.sh @@ -252,6 +252,7 @@ case ${clst_livecd_type} in /opt/installer/misc/mkvardb -p livecd-kernel -c sys-kernel -v ${clst_version_stamp} --provide "virtual/alsa" /boot/kernel* /boot/initr* $(for i in $(find "/lib/modules/" -type f); do grep --quiet "${i}" /var/db/pkg/*/*/CONTENTS || echo ${i}; done) fi + # Setup Gnome theme if [ "${clst_livecd_xsession}" == "gnome" ] then gconftool-2 --direct \ @@ -276,6 +277,26 @@ case ${clst_livecd_type} in --type string --set /desktop/gnome/interface/font_name "Sans 9" fi + # Setup GDM + if [ "${clst_livecd_xdm}" == "gdm" ] + then + cp -f /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm.conf.old + sed -e 's:TimedLoginEnable=false:TimedLoginEnable=true:' \ + -e 's:TimedLoginDelay=30:TimedLoginDelay=10:' \ + -e 's:AllowRemoteRoot=true:AllowRemoteRoot=false:' \ + -e 's:GraphicalTheme=circles:GraphicalTheme=gentoo-emergence:' \ + -e ':^#GraphicalTheme: s:^#::' \ + -i /etc/X11/gdm/gdm.conf + if [ -n "${clst_livecd_users}" -a -n "${first_user}" ] + then + sed -e "s:TimedLogin=:TimedLogin=${first_user}:" \ + -i /etc/X11/gdm/gdm.conf + else + sed -e "s:TimedLogin=:TimedLogin=gentoo:" \ + -i /etc/X11/gdm/gdm.conf + fi + fi + # This gives us our list of system packages for the installer mkdir -p /usr/livecd USE="-* $(cat /var/db/pkg/sys-libs/glibc*/USE)" emerge -ep system | grep -e '^\[ebuild' | sed -e 's:^\[ebuild .\+\] ::' > /usr/livecd/systempkgs.txt @@ -287,8 +308,37 @@ case ${clst_livecd_type} in mv -f /etc/gconf /usr/livecd mv -f /var/db /usr/livecd - # This gives us a proper cache for portage + # This gives us a proper cache for portage/installer tar cjf /usr/livecd/metadata.tar.bz2 /var/cache/edb/dep/usr/portage + + # We remove kernel sources from our vdb + rm -rf /usr/livecd/db/pkg/sys-kernel/*sources* + + # Clear out lastlog + rm -f /var/log/lastlog && touch /var/log/lastlog + + # Create our installer icons + if [ -e /usr/share/applications/installer-gli.desktop ] + then + if [ -n "${clst_livecd_users}" ] + then + for username in ${clst_livecd_users} + do + mkdir -p /home/${username}/Desktop + cp /usr/share/applications/installer-gtk.desktop \ + /home/${username}/Desktop + cp /usr/share/applications/installer-faq.desktop \ + /home/${username}/Desktop + cp /usr/share/applications/installer-dialog.desktop \ + /home/${username}/Desktop + sed -e 's:Exec=installer:Exec=sudo installer:' \ + /home/${username}/Desktop/installer-dialog.desktop + sed -e 's:Exec=installer:Exec=sudo installer:' \ + /home/${username}/Desktop/installer-gtk.desktop + chown -R ${username}:100 /home/${username} + done + fi + fi ;; generic-livecd ) # This is my hack to reduce tmpfs usage -- 2.26.2