diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-28 10:44:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-28 10:44:50 -0300 |
commit | a3a472298878996dc00273e58efcbfcdf53039fd (patch) | |
tree | f6cba54fd43e3c588d7d825519348e14cde10fff /share/hydractl/provision-chroot | |
parent | 83c155d81de0666bfc0e05772139569ae42d7c1f (diff) | |
download | hydra-a3a472298878996dc00273e58efcbfcdf53039fd.tar.gz hydra-a3a472298878996dc00273e58efcbfcdf53039fd.tar.bz2 |
Apt config at provision
Diffstat (limited to 'share/hydractl/provision-chroot')
-rwxr-xr-x | share/hydractl/provision-chroot | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/hydractl/provision-chroot b/share/hydractl/provision-chroot index ff771cf..e8ce9b5 100755 --- a/share/hydractl/provision-chroot +++ b/share/hydractl/provision-chroot @@ -48,6 +48,17 @@ done hydra_sudo_run mkdir -p /var/chroot hydra_sudo_run debootstrap --variant=minbase --arch $arch $version $WORK $mirror +# Apt +if [ "$version" != "sid" ]; then + echo "deb http://security.debian.org/ $version/updates main contrib non-free" | $SUDO tee $WORK/etc/apt/sources.list + echo "deb-src http://security.debian.org/ $version/updates main contrib non-free" | $SUDO tee $WORK/etc/apt/sources.list +fi + +# Initial upgrade. +echo "Applying initial upgrades..." +hydra_sudo_run chroot $WORK/ apt-get update +hydra_sudo_run chroot $WORK/ apt-get upgrade -y + # Arch specific procedures if [ "$arch" == "armel" ] || [ "$arch" == "armhf" ]; then if [ ! -f '/usr/bin/qemu-arm-static' ]; then |