From 8a2fa455ea6a9414476982b1a1bf9ff2a76143f4 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 17 Mar 2010 15:07:12 -0600 Subject: [PATCH] Import patches-unapplied version 1.107 to ubuntu/lucid Imported using git-ubuntu import. Changelog parent: c7f1a3bbd973513dbe97b44b55b19981236118d4 New changelog entries: * Deliver edubuntu/i386 ltsp sqaushfs image. LP: #531546 * fix typo in deciding to remove /usr/share/icons/*/icon-theme.cache on kubuntu-ish images. --- BuildLiveCD | 7 ++++++- debian/changelog | 8 ++++++++ debian/control | 2 +- livecd.sh | 21 +++++++++++++++++++-- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/BuildLiveCD b/BuildLiveCD index 62570762..e7ff8318 100755 --- a/BuildLiveCD +++ b/BuildLiveCD @@ -27,7 +27,7 @@ fi ARCH=$(dpkg --print-architecture) SUBARCH="" SUBARCHARG="" -DEFAULTSUITE="karmic" +DEFAULTSUITE="lucid" NEWSUITE="" SUITES="" PROPOSED="" @@ -41,6 +41,11 @@ if [ "$1" = '-p' ]; then PROPOSED='-p' shift fi +if [ "$1" = '--archive' ]; then + shift + PROPOSED="$PROPOSED -m $1" + shift +fi if [ "$1" = '-d' ]; then shift NEWSUITE="$1" diff --git a/debian/changelog b/debian/changelog index 3dd8daa9..f734ad30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (1.107) lucid; urgency=low + + * Deliver edubuntu/i386 ltsp sqaushfs image. LP: #531546 + * fix typo in deciding to remove /usr/share/icons/*/icon-theme.cache + on kubuntu-ish images. + + -- LaMont Jones Wed, 17 Mar 2010 15:07:12 -0600 + livecd-rootfs (1.106) lucid; urgency=low * Delete Gnome icon cache for Kubuntu images diff --git a/debian/control b/debian/control index 3e3f0728..951e772c 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk Package: livecd-rootfs Architecture: all -Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release +Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release, ltsp-server [i386] Suggests: partimage Description: construction script for the livecd rootfs livecd-rootfs provides the script used to create the root filesystem diff --git a/livecd.sh b/livecd.sh index 00f230f7..1c994a56 100755 --- a/livecd.sh +++ b/livecd.sh @@ -21,7 +21,7 @@ set -eu # Boston, MA 02110-1301 USA. # ########################################################################## -# Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools +# Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools, ltsp-server cleanup() { for mnt in ${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev \ @@ -584,7 +584,7 @@ Pin-Priority: 550 esac # No point keeping Gnome icon cache around for Kubuntu - if [ "$FS" = "kubuntu" || "$FS" = "kubuntu-netbook" ]; then + if [ "$FS" = "kubuntu" ] || [ "$FS" = "kubuntu-netbook" ]; then rm -f ${ROOT}/usr/share/icons/*/icon-theme.cache fi @@ -647,4 +647,21 @@ Pin-Priority: 550 livefs_squash + # LTSP chroot building (only in 32bit and for Edubuntu (DVD)) + case $FS in + edubuntu) + if [ "$TARGETARCH" = "i386" ]; then + # Make sure we don't make everything fail here + ltsp-build-client --base $(pwd) --mirror $MIRROR --arch $TARGETARCH --dist $STE --chroot ltsp-live --purge-chroot --skipimage || true + ltsp-update-image --base $(pwd) --arch ltsp-live || true + rm -Rf $(pwd)/ltsp-live + if [ -f $(pwd)/images/ltsp-live.img ]; then + mv $(pwd)/images/ltsp-live.img livecd.$FS-ltsp.squashfs + rmdir --ignore-fail-on-non-empty $(pwd)/images/ + else + echo "LTSP: Unable to build the chroot, see above for details." + fi + fi + ;; + esac done