Replace a pending "chroot" section by "create-file"

This commit is contained in:
Gunnar Wolf 2020-04-04 19:56:51 -06:00
parent 71d57afb1c
commit f1445d5f28
1 changed files with 10 additions and 7 deletions

View File

@ -48,15 +48,18 @@ steps:
- non-free - non-free
unless: rootfs_unpacked unless: rootfs_unpacked
# TODO(https://bugs.debian.org/877855): remove this workaround once - create-file: /etc/apt/sources.list
# debootstrap is fixed trailing-newline: '1'
contents: |
deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security buster/updates main contrib non-free
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
# deb http://deb.debian.org/debian buster-backports main contrib non-free
unless: rootfs_unpacked
- chroot: / - chroot: /
shell: | shell: |
echo 'deb http://deb.debian.org/debian buster main contrib non-free' > /etc/apt/sources.list
echo 'deb http://deb.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
echo '# Backports are _not_ enabled by default. ' >> /etc/apt/sources.list
echo '# Enable them by uncommenting the following line:' >> /etc/apt/sources.list
echo '# deb http://deb.debian.org/debian buster-backports main contrib non-free' >> /etc/apt/sources.list
apt-get update apt-get update
unless: rootfs_unpacked unless: rootfs_unpacked