Browse code

Allow for custom debootstrap wrappers like qemu-debootstrap in contrib/mkimage/debootstrap

Signed-off-by: Andrew Page <admwiggin@gmail.com>

Tianon Gravi authored on 2014/11/19 07:13:35
Showing 1 changed files
... ...
@@ -15,9 +15,12 @@ done
15 15
 suite="$1"
16 16
 shift
17 17
 
18
+# allow for DEBOOTSTRAP=qemu-debootstrap ./mkimage.sh ...
19
+: ${DEBOOTSTRAP:=debootstrap}
20
+
18 21
 (
19 22
 	set -x
20
-	debootstrap "${before[@]}" "$suite" "$rootfsDir" "$@"
23
+	$DEBOOTSTRAP "${before[@]}" "$suite" "$rootfsDir" "$@"
21 24
 )
22 25
 
23 26
 # now for some Docker-specific tweaks