Trimming down gnome-desktop images to fit cd size in example build script.

This commit is contained in:
Daniel Baumann 2009-02-13 10:20:50 +01:00
parent 9a8304d03b
commit 9e58625631
1 changed files with 33 additions and 13 deletions

View File

@ -29,24 +29,44 @@ do
rm -rf cache/packages* rm -rf cache/packages*
rm -rf cache/stages_rootfs rm -rf cache/stages_rootfs
if [ "${ARCHITECTURE}" = "i386" ] case "${ARCHITECTURE}" in
then amd64)
case "${FLAVOUR}" in case "${FLAVOUR}" in
standard|rescue|lxde-desktop|xfce-desktop) gnome-desktop)
KERNEL="-p '486 686'" 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
gnome-desktop|kde-desktop) INDICES="none"
KERNEL="-p '686'" ;;
;;
esac kde-desktop)
fi 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" ] if [ "${SOURCE}" = "enabled" ]
then 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 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 fi
if [ "${DISTRIBUTION}" = "sid" ] if [ "${DISTRIBUTION}" = "sid" ]