diff options
author | Daniel Baumann <daniel@debian.org> | 2009-02-13 10:20:50 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:42 +0100 |
commit | 9e5862563186d4eab07913ec00c4c311db0c99b0 (patch) | |
tree | 4416e4f79182263615ba269035407b54822a9792 | |
parent | 9a8304d03b6b8e006b9e6187eb47199b1f2cab96 (diff) | |
download | vyos-live-build-9e5862563186d4eab07913ec00c4c311db0c99b0.tar.gz vyos-live-build-9e5862563186d4eab07913ec00c4c311db0c99b0.zip |
Trimming down gnome-desktop images to fit cd size in example build script.
-rwxr-xr-x | examples/cron/images.sh | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh index 5d891ea8f..57226e3f1 100755 --- a/examples/cron/images.sh +++ b/examples/cron/images.sh @@ -29,24 +29,44 @@ do rm -rf cache/packages* rm -rf cache/stages_rootfs - if [ "${ARCHITECTURE}" = "i386" ] - then - case "${FLAVOUR}" in - standard|rescue|lxde-desktop|xfce-desktop) - KERNEL="-p '486 686'" - ;; - - gnome-desktop|kde-desktop) - KERNEL="-p '686'" - ;; - esac - fi + case "${ARCHITECTURE}" in + amd64) + case "${FLAVOUR}" in + gnome-desktop) + mkdir -p config/chroot_local-hooks + echo "apt-get remove --yes --purge openoffice.org-help-en-us" > config/chroot_local-hooks/package-removals + echo "apt-get remove --yes --purge epiphany-browser epiphany-browser-data epiphany-extensions epiphany-gecko" >> config/chroot_local-hooks/package-removals + echo "apt-get remove --yes --purge gnome-user-guide" >> config/chroot_local-hooks/package-removals + + INDICES="none" + ;; + + kde-desktop) + INDICES="none" + ;; + esac + ;; + + i386) + case "${FLAVOUR}" in + standard|rescue|lxde-desktop|xfce-desktop) + KERNEL="-p '486 686'" + INDICES="enabled" + ;; + + gnome-desktop|kde-desktop) + KERNEL="-p '686'" + INDICES="none" + ;; + esac + ;; + esac if [ "${SOURCE}" = "enabled" ] then - lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --tasksel aptitude ${KERNEL} --source enabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY} + lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --binary-indices ${INDICES} --tasksel aptitude ${KERNEL} --source enabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY} else - lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --tasksel aptitude ${KERNEL} --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY} + lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --binary-indices ${INDICES} --tasksel aptitude ${KERNEL} --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY} fi if [ "${DISTRIBUTION}" = "sid" ] |