From b339942ca42346d83175270c2475e12569e422a6 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 28 Aug 2021 05:25:38 +0200 Subject: [PATCH] Fix missing trailing newline in sources.list Re-implement MR #49 by Diederik de Haas. --- raspi_master.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspi_master.yaml b/raspi_master.yaml index 78f6da7..9b9b930 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -49,11 +49,11 @@ steps: unless: rootfs_unpacked - create-file: /etc/apt/sources.list - trailing-newline: '1' - contents: | + contents: |+ deb http://deb.debian.org/debian __RELEASE__ main contrib non-free deb http://security.debian.org/debian-security __SECURITY_SUITE__ main contrib non-free __BACKPORTS__ + unless: rootfs_unpacked - copy-file: /etc/initramfs-tools/hooks/rpi-resizerootfs