Skip to content

Commit

Permalink
Merge pull request #152 from enovance/fix-debootstrap-scripts
Browse files Browse the repository at this point in the history
base.install: Fix debootstrap scripts
  • Loading branch information
fredericlepied committed Feb 5, 2015
2 parents 9122c90 + 87326bc commit d360281
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/base.install
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d360281

Please sign in to comment.