From 454329448707fbcf0da643976e8475358f378e30 Mon Sep 17 00:00:00 2001 From: Ghe Rivero Date: Wed, 22 Oct 2014 16:59:02 +0200 Subject: [PATCH] Update Debian repo to retrieve signed Release file After bootstraping a Debian image, the repository keys are installed to verify the packages signatures, but the Release signature file is missing. Updating the repo, will retrieve a new InRelease file (inline signed). Change-Id: I14f0d22cc9c72be9b07f3708270359bc8cff112d --- elements/debian/root.d/08-debootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/debian/root.d/08-debootstrap b/elements/debian/root.d/08-debootstrap index 723002b7..69cf9f04 100755 --- a/elements/debian/root.d/08-debootstrap +++ b/elements/debian/root.d/08-debootstrap @@ -57,13 +57,15 @@ else apt_get_bp_extra_opts= if [ "$DIB_RELEASE" = "wheezy" ]; then sudo sh -c "echo deb $DIB_DISTRIBUTION_MIRROR wheezy-backports main >> ${TARGET_ROOT}/etc/apt/sources.list" - sudo chroot ${TARGET_ROOT} apt-get update cat << EOF | sudo tee -a ${TARGET_ROOT}/etc/network/interfaces source /etc/network/interfaces.d/* EOF apt_get_bp_extra_opts="-t wheezy-backports" fi + # Need to update to retrieve the signed Release file + sudo chroot ${TARGET_ROOT} apt-get update + CLOUD_INIT_PACKAGES="cloud-init cloud-utils cloud-initramfs-growroot" sudo sh -c "http_proxy=$http_proxy chroot ${TARGET_ROOT} apt-get install -y $apt_get_bp_extra_opts $CLOUD_INIT_PACKAGES"