From 5fcd5f265d49528575581bfa1f1e6e2ac7a5d43b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 11 Sep 2018 16:20:55 +0200 Subject: [PATCH] TT#28953 Ensure we have wget available by default wget in Debian/buster: | Package: wget | Version: 1.19.5-1 | [...] | Priority: standard wget in Debian/stretch and earlier: | Package: wget | Version: 1.18-5+deb9u2 | [...] | Priority: important To ensure we still have wget available inside the Debian system, e.g. for retrieving the ngcp-installer*.deb file, we need to add it to the package selection. The ngcp-nth-* packages also include wget in their dependencies, ngcp-installer also checks and adds it, though it's too late there for bootstrapping our systems, as we're e.g. retrieving the installer deb + checking for PPAs using wget. While at it move the slightly misleading comment to the appropriate place. Change-Id: I971b2d06528a33b1dc4c310feef83c32e10ae557 --- templates/scripts/includes/deployment.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 1d7af5e..94f41cb 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1079,7 +1079,6 @@ echo > /etc/debootstrap/packages if ! "$NGCP_INSTALLER" ; then echo "Install some packages to be able to login on the Debian plain system" - # WARNING: consider to add NGCP packages to NGCP metapackage! cat >> /etc/debootstrap/packages << EOF # to be able to login on the Debian plain system via SSH openssh-server @@ -1087,6 +1086,13 @@ openssh-server # deployment supports LVM only lvm2 EOF +else + echo "Install some essential packages for NGCP bootstrapping" + # WARNING: consider to add NGCP packages to NGCP metapackage! + cat >> /etc/debootstrap/packages << EOF +# to be able to retrieve files, starting with Debian/buster no longer present by default +wget +EOF fi # NOTE: we use the debian.sipwise.com CNAME by intention here