summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wolf <gwolf@gwolf.org>2020-04-04 19:56:51 -0600
committerGunnar Wolf <gwolf@gwolf.org>2020-04-04 20:03:16 -0600
commitf1445d5f28da7eb5fe032403d737d84fda67a4dd (patch)
treedff4fb2f8a2df12b164f2150cdc8640635b485a4
parent71d57afb1c367938993a2c4b0574d1f879a33c83 (diff)
Replace a pending "chroot" section by "create-file"
-rw-r--r--raspi_master.yaml17
1 files changed, 10 insertions, 7 deletions
diff --git a/raspi_master.yaml b/raspi_master.yaml
index 25595ac..26fc36c 100644
--- a/raspi_master.yaml
+++ b/raspi_master.yaml
@@ -48,15 +48,18 @@ steps:
- non-free
unless: rootfs_unpacked
- # TODO(https://bugs.debian.org/877855): remove this workaround once
- # debootstrap is fixed
+ - create-file: /etc/apt/sources.list
+ 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: /
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
unless: rootfs_unpacked