Pārlūkot izejas kodu

Merge pull request #9224 from tianon/custom-debootstrap

Allow for custom debootstrap wrappers like qemu-debootstrap in contrib/mkimage/debootstrap
Jessie Frazelle 10 gadi atpakaļ
vecāks
revīzija
27127437a6
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      contrib/mkimage/debootstrap

+ 4 - 1
contrib/mkimage/debootstrap

@@ -15,9 +15,12 @@ done
 suite="$1"
 suite="$1"
 shift
 shift
 
 
+# allow for DEBOOTSTRAP=qemu-debootstrap ./mkimage.sh ...
+: ${DEBOOTSTRAP:=debootstrap}
+
 (
 (
 	set -x
 	set -x
-	debootstrap "${before[@]}" "$suite" "$rootfsDir" "$@"
+	$DEBOOTSTRAP "${before[@]}" "$suite" "$rootfsDir" "$@"
 )
 )
 
 
 # now for some Docker-specific tweaks
 # now for some Docker-specific tweaks