From 739e7017ea68bf529515666feab89ae02e7c983e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 18 Oct 2022 09:41:35 +0200 Subject: [PATCH] build-debian-toolbox: Enable apt sources by default The format changed in sid, so only apply this to the RFC822-style source files. --- build-debian-toolbox | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-debian-toolbox b/build-debian-toolbox index 13ee84d..f1e7f8e 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -17,6 +17,11 @@ echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io # otherwise installing systemd fails umount /var/log/journal +# enable sources +if [ -e /etc/apt/sources.list.d/debian.sources ]; then + sed -i "/^Types:/ s/deb$/deb deb-src/" /etc/apt/sources.list.d/debian.sources +fi + apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin -- 2.39.2