Changed some copy commands to use -f, added a check for /etc/gconf before moving...
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 22 Aug 2006 16:45:47 +0000 (16:45 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 22 Aug 2006 16:45:47 +0000 (16:45 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1173 d1e1f19c-881f-0410-ab34-b69fee027534

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

index d7719f91f2d36dbbd47329793853e47ddc0c3b9a..53bb27e44cbdb97ec9c49002258f194ef64eef4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 # 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:
index 8009eb88193b910f41f5580080bf56f4c61138c5..0b00f5979b079268dd2bdb960a0fac2f252c6298 100755 (executable)
@@ -1,6 +1,6 @@
 # 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
@@ -63,11 +63,11 @@ case $1 in
                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
@@ -75,7 +75,7 @@ case $1 in
                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
index c3b81ff8677f0715721c0d172988dd530dd62ae9..dc643c6d67b676370ef7ab76e65ad65f7de1fed3 100755 (executable)
@@ -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.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
 
@@ -336,11 +336,11 @@ case ${clst_livecd_type} in
                                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
@@ -354,7 +354,7 @@ case ${clst_livecd_type} in
        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
@@ -382,7 +382,7 @@ esac
 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