# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.645 2006/07/12 23:28:40 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.646 2006/07/19 21:39:46 wolf31o2 Exp $
+
+ 19 Jul 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+ targets/support/livecdfs-update.sh:
+ I've modified the GDM configuration section to work correctly. I have also
+ ensured that xdm is no longer started just because livecd/xdm is used, which
+ was causing issues for the generic-livecd type. This is 2.0_rc50, which
+ should be the last of the 'release candidates' made. If there are no bug
+ reports in 2 days, then I'm rolling this as 2.0 final.
12 Jul 2006; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/livecdfs-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.54 2006/07/12 23:28:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.55 2006/07/19 21:39:46 wolf31o2 Exp $
. /tmp/chroot-functions.sh
update_env_settings
-# Allow root logins to the livecd by default
+# Allow root logins to our CD by default
if [ -e /etc/sshd/sshd_config ]
then
sed -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
# Add any users
if [ -n "${clst_livecd_users}" ]
then
+ first_user=$(echo ${clst_livecd_users} | cut -d' ' -f1)
+
# Here we check to see if games exists for bug #125498
if [ "$(getent group games | cut -d: -f1)" != "games" ]
then
for x in ${clst_livecd_users}
do
useradd -G users,wheel,audio,games,cdrom,usb -c "Default LiveCD User" \
- -m $x
+ -m ${x}
if [ -n "${clst_livecd_xdm}" -a -n "${clst_livecd_xsession}" ]
then
- echo "[Desktop]" > /home/$x/.dmrc
- echo "Session=${clst_livecd_xsession}" >> /home/$x/.dmrc
- chown -R $x:users /home/$x
+ echo "[Desktop]" > /home/${x}/.dmrc
+ echo "Session=${clst_livecd_xsession}" >> /home/${x}/.dmrc
+ chown -R ${x}:users /home/${x}
fi
done
fi
then
sed -i "s:#DISPLAYMANAGER=\"xdm\":DISPLAYMANAGER=\"${clst_livecd_xdm}\":" \
/etc/rc.conf
- rc-update add xdm default
fi
# Setup configured default X Session
then
if [ -d /etc/splash/${clst_livecd_splash_theme} ]
then
- sed -i 's:# SPLASH_THEME="gentoo":SPLASH_THEME=\"${clst_livecd_splash_theme}\":' /etc/conf.d/splash
+ sed -i "s:# SPLASH_THEME=\"gentoo\":SPLASH_THEME=\"${clst_livecd_splash_theme}\":" /etc/conf.d/splash
rm -f /etc/splash/default
ln -s /etc/splash/${clst_livecd_splash_theme} /etc/splash/default
else
then
if [ -n "${clst_livecd_users}" ] && [ -n "${first_user}" ]
then
- sedxtra="TimedLogin=${first_user}"
+ sedxtra="\nTimedLogin=${first_user}"
else
sedxtra=""
fi
sed -i \
- -e 's:\(\[daemon\]\)$:\1\nTimedLoginEnable=true:' \
- -e 's:^TimedLoginEnable=true$:\1\nTimedLoginDelay=10:' \
+ -e "s:\(\[daemon\]\)$:\1\nTimedLoginEnable=true\nTimedLoginDelay=10${sedxtra}:" \
-e 's:\(\[greeter\]\)$:\1\nGraphicalTheme=gentoo-emergence:' \
/etc/X11/gdm/custom.conf
- [ -n "${sedxtra}" ] && sed -i \
- -e "s:^TimedLoginDelay=10$:\1\n${sedxtra}:" \
- /etc/X11/gdm/custom.conf
else
cp -f /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm.conf.old
sed -i \
-e 's:^GraphicalTheme=.*$:GraphicalTheme=gentoo-emergence:' \
/etc/X11/gdm/gdm.conf
-
if [ -n "${clst_livecd_users}" ] && [ -n "${first_user}" ]
then
sed -i \
esac
# We want the first user to be used when auto-starting X
-if [ -n "${clst_livecd_users}" -a -e /etc/startx ]
+if [ -e /etc/startx ]
then
- first_user=$(echo ${clst_livecd_users} | cut -d' ' -f1)
- sed -i "s/##STARTX/source /etc/profile && su - $first_user -c startx/" \
+ sed -i \
+ "s/##STARTX/source /etc/profile && su - ${first_user} -c startx/" \
/root/.bashrc
fi