Skip to content

Commit d360281

Browse files
Merge pull request #152 from enovance/fix-debootstrap-scripts
base.install: Fix debootstrap scripts
2 parents 9122c90 + 87326bc commit d360281

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build/base.install

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,19 @@ bootstrap() {
131131
# Use debootstrap for debian based distribution
132132
if [ "$(package_type)" = "deb" ]; then
133133
check_binary debootstrap
134+
case "$dist" in
135+
$supported_debian_dists)
136+
scripts="sid"
137+
;;
138+
$supported_ubuntu_dists)
139+
scripts="gutsy"
140+
;;
141+
esac
142+
if [ ! -e /usr/share/debootstrap/scripts/${dist} ]; then
143+
cd /usr/share/debootstrap/scripts
144+
ln -s $scripts $dist
145+
cd -
146+
fi
134147
debootstrap --arch ${ARCH:=amd64} --variant=minbase $dist "$target" $repository
135148
# workaround no signature downloaded
136149
rm -f "$target"/var/lib/apt/lists/*[es]

0 commit comments

Comments
 (0)