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
This commit is contained in:
parent
48ce0fde51
commit
4543294487
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user