# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.664 2006/10/02 20:41:53 wolf31o2 Exp $
+ 20 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/support/chroot-functions.sh, targets/support/livecdfs-update.sh:
+ Added a create_handbook_icon function and rearranged some of the icon
+ creation for the LiveCD. This should resolve bug #143725 once a new release
+ is made.
+
20 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/livecdfs-update.sh:
We now disable the RC_COLDPLUG in /etc/conf.d/rc so udev will not do
copy_symlink ${f}
fi
}
+
+create_handbook_icon() {
+ # This function creates a local icon to the Gentoo Handbook
+ echo "[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Link
+URL=file:///mnt/cdrom/docs/handbook/html/index.html
+Terminal=false
+Name=Gentoo Linux Handbook
+GenericName=Gentoo Linux Handbook
+Comment=This is a link to the local copy of the Gentoo Linux Handbook.
+Icon=gedit-icon.png" > /usr/share/applications/gentoo-handbook.desktop
+}
#!/bin/bash
# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.64 2006/10/02 20:41:54 wolf31o2 Exp $
-. /tmp/chroot-functions.sh
+source /tmp/chroot-functions.sh
update_env_settings
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 -eqp system | grep -e '^\[ebuild' | sed -e 's:^\[ebuild .\+\] ::' -e 's: .\+$::' > /usr/livecd/systempkgs.txt
# Clear out lastlog
rm -f /var/log/lastlog && touch /var/log/lastlog
- # Create our installer icons
- if [ -e /usr/share/applications/installer-gtk.desktop ]
+ # Create our Handbook icon
+ create_handbook_icon
+
+ # Copy our icons into place and build home directories
+ if [ -n "${clst_livecd_users}" ]
then
- if [ -n "${clst_livecd_users}" ]
- then
- for username in ${clst_livecd_users}
- do
- mkdir -p /home/${username}/Desktop
+ for username in ${clst_livecd_users}
+ do
+ mkdir -p /home/${username}/Desktop
+ # Copy our Handbook icon
+ cp -f /usr/share/applications/gentoo-handbook.desktop \
+ /home/${username}/Desktop
+ # Copy our installer icons
+ if [ -e /usr/share/applications/installer-gtk.desktop ]
+ then
cp -f /usr/share/applications/installer-gtk.desktop \
/home/${username}/Desktop
- cp -f /usr/share/applications/installer-faq.desktop \
- /home/${username}/Desktop
cp -f /usr/share/applications/installer-dialog.desktop \
/home/${username}/Desktop
sed -i -e \
/home/${username}/Desktop/installer-dialog.desktop
sed -i -e 's:Exec=installer-gtk:Exec=installer:' \
/home/${username}/Desktop/installer-gtk.desktop
- chown -R ${username}:100 /home/${username}
- done
- fi
+ fi
+ chown -R ${username}:100 /home/${username}
+ done
fi
;;
generic-livecd )