# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.657 2006/08/16 21:50:12 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.658 2006/08/22 16:45:47 wolf31o2 Exp $
+
+ 22 Aug 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/livecd-stage2/livecd-stage2-controller.sh,
+ targets/support/livecdfs-update.sh:
+ Changed some copy commands to use -f, added a check for /etc/gconf before
+ moving it when not using gentoo-release-livecd, and fixed a sed for root's
+ .bashrc, as reported on the gentoo-catalyst mailing list by Luca Casagrande
+ <luca.casagrande@gmail.com>.
16 Aug 2006; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/livecdfs-update.sh:
# Copyright 1999-2005 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.21 2006/04/20 15:17:01 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.22 2006/08/22 16:45:47 wolf31o2 Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
fi
# move over the environment
- cp ${clst_sharedir}/livecd/files/livecd-bashrc \
+ cp -f ${clst_sharedir}/livecd/files/livecd-bashrc \
${clst_chroot_path}/root/.bashrc
- cp ${clst_sharedir}/livecd/files/livecd-bash_profile \
+ cp -f ${clst_sharedir}/livecd/files/livecd-bash_profile \
${clst_chroot_path}/root/.bash_profile
- cp ${clst_sharedir}/livecd/files/livecd-local.start \
+ cp -f ${clst_sharedir}/livecd/files/livecd-local.start \
${clst_chroot_path}/etc/conf.d/local.start
# execute copy gamecd.conf if we're a gamecd
then
if [ -n "${clst_gamecd_conf}" ]
then
- cp ${clst_gamecd_conf} ${clst_chroot_path}/tmp/gamecd.conf
+ cp -f ${clst_gamecd_conf} ${clst_chroot_path}/tmp/gamecd.conf
else
echo "gamecd/conf is required for a gamecd!"
exit 1
#!/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.60 2006/08/16 21:50:12 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.61 2006/08/22 16:45:47 wolf31o2 Exp $
. /tmp/chroot-functions.sh
for username in ${clst_livecd_users}
do
mkdir -p /home/${username}/Desktop
- cp /usr/share/applications/installer-gtk.desktop \
+ cp -f /usr/share/applications/installer-gtk.desktop \
/home/${username}/Desktop
- cp /usr/share/applications/installer-faq.desktop \
+ cp -f /usr/share/applications/installer-faq.desktop \
/home/${username}/Desktop
- cp /usr/share/applications/installer-dialog.desktop \
+ cp -f /usr/share/applications/installer-dialog.desktop \
/home/${username}/Desktop
sed -i -e 's:Exec=installer-dialog:Exec=sudo installer-dialog:' \
/home/${username}/Desktop/installer-dialog.desktop
generic-livecd )
# This is my hack to reduce tmpfs usage
mkdir -p /usr/livecd
- mv -f /etc/gconf /usr/livecd
+ [ -d /etc/gconf ] && mv -f /etc/gconf /usr/livecd
if [ -e /usr/livecd/grppkgs.txt ]
then
rm -f /usr/livecd/grppkgs.txt
if [ -e /etc/startx ]
then
sed -i \
- "s/##STARTX/source /etc/profile && su - ${first_user} -c startx/" \
+ "s:##STARTX:source /etc/profile && su - ${first_user} -c startx:" \
/root/.bashrc
fi