diff --git a/build/base.install b/build/base.install index 0601fc510..ae86d8f1f 100755 --- a/build/base.install +++ b/build/base.install @@ -131,6 +131,19 @@ bootstrap() { # Use debootstrap for debian based distribution if [ "$(package_type)" = "deb" ]; then check_binary debootstrap + case "$dist" in + $supported_debian_dists) + scripts="sid" + ;; + $supported_ubuntu_dists) + scripts="gutsy" + ;; + esac + if [ ! -e /usr/share/debootstrap/scripts/${dist} ]; then + cd /usr/share/debootstrap/scripts + ln -s $scripts $dist + cd - + fi debootstrap --arch ${ARCH:=amd64} --variant=minbase $dist "$target" $repository # workaround no signature downloaded rm -f "$target"/var/lib/apt/lists/*[es]