# 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 <wolf31o2@gentoo.org>
+ 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 <wolf31o2@gentoo.org>
targets/support/rc-update.sh:
#!/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
/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 \
--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
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