diff options
Diffstat (limited to 'scripts/build/lb_bootstrap_debootstrap')
-rwxr-xr-x | scripts/build/lb_bootstrap_debootstrap | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build/lb_bootstrap_debootstrap b/scripts/build/lb_bootstrap_debootstrap index bcc098043..1b5f5fe05 100755 --- a/scripts/build/lb_bootstrap_debootstrap +++ b/scripts/build/lb_bootstrap_debootstrap @@ -103,6 +103,13 @@ then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --verbose" fi +# If LB_APT_SECURE is false, do not check signatures of the Release file +# (requires debootstrap >= 1.0.30) +if [ "${LB_APT_SECURE}" = "false" ] && /usr/sbin/debootstrap --help | grep -qs '\-\-no-check-gpg' +then + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --no-check-gpg" +fi + if [ -x "/usr/sbin/debootstrap" ] then if [ "${LB_CACHE_PACKAGES}" = "true" ] |