diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-31 19:19:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 19:19:58 +0100 |
commit | 27d0d96ccdcc2b93e5900eb1b22e2fdae429c4ef (patch) | |
tree | 7765b228cb44cf194c775ac28ca5a6f2e36b6536 | |
parent | 2d78842ed5e49dee363791a7e382f74e61ef974f (diff) | |
parent | f3a4aba7f14f91f9aede25d32fb54b787216c8e7 (diff) | |
download | vyos-build-27d0d96ccdcc2b93e5900eb1b22e2fdae429c4ef.tar.gz vyos-build-27d0d96ccdcc2b93e5900eb1b22e2fdae429c4ef.zip |
Merge pull request #144 from zdc/T2640-sagitta
VyOS in Docker: T2640: Fixed builds for sagitta
-rw-r--r-- | docker-vyos/vyos_install_common.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docker-vyos/vyos_install_common.sh b/docker-vyos/vyos_install_common.sh index 0039bc31..7c5360c0 100644 --- a/docker-vyos/vyos_install_common.sh +++ b/docker-vyos/vyos_install_common.sh @@ -36,7 +36,7 @@ function prepare_apt() { echo -e "deb ${APT_VYOS_MIRROR}/vyos ${APT_VYOS_BRANCH} main\ndeb ${APT_VYOS_MIRROR}/debian ${APT_VYOS_BRANCH} main\n${APT_ADDITIONAL_REPOS}" > /etc/apt/sources.list.d/vyos.list fi - if [[ "${RELEASE_TRAIN}" == "equuleus" ]]; then + if [[ "${RELEASE_TRAIN}" == "equuleus" || "${RELEASE_TRAIN}" == "sagitta" ]]; then echo -e "deb ${APT_VYOS_MIRROR} ${APT_VYOS_BRANCH} main\n${APT_ADDITIONAL_REPOS}" > /etc/apt/sources.list.d/vyos.list # Add backports repository echo -e "deb http://deb.debian.org/debian buster-backports main\ndeb http://deb.debian.org/debian buster-backports non-free" >> /etc/apt/sources.list.d/vyos.list @@ -47,7 +47,10 @@ function prepare_apt() { cat /tmp/*list.chroot >> /etc/apt/sources.list.d/vyos.list fi if grep -sq Package /tmp/*.pref.chroot; then - cat /tmp/*pref.chroot >> /etc/apt/preferences.d/10vyos + for pref_file in /tmp/*.pref.chroot; do + cat $pref_file >> /etc/apt/preferences.d/10vyos + echo -e "\n" >> /etc/apt/preferences.d/10vyos + done fi # Add GPG keys |