=== modified file 'livecd.sh' --- livecd.sh 2010-02-23 17:52:27 +0000 +++ livecd.sh 2010-03-03 19:23:01 +0000 @@ -21,7 +21,7 @@ # 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 \ @@ -647,4 +647,21 @@ 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