Handling sourceless builds in images.sh.

This commit is contained in:
Daniel Baumann 2008-04-22 17:57:28 +02:00
parent eb30df0655
commit a6b745939a
1 changed files with 12 additions and 3 deletions

View File

@ -22,7 +22,12 @@ do
rm -rf cache/packages* rm -rf cache/packages*
rm -rf cache/stages_rootfs rm -rf cache/stages_rootfs
lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/ if [ "${1}" != "nosource" ]
then
lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
else
lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source disabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
fi
if [ "${DISTRIBUTION}" = "sid" ] if [ "${DISTRIBUTION}" = "sid" ]
then then
@ -39,8 +44,12 @@ do
mv binary.iso debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso mv binary.iso debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso
mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.list mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.list
mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.packages mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.packages
mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
mv source.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list if [ "${1}" != "nosource" ]
then
mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz
mv source.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list
fi
lh clean --binary lh clean --binary
lh config -b usb-hdd lh config -b usb-hdd