From: Martin Pitt Date: Tue, 18 Oct 2022 07:41:35 +0000 (+0200) Subject: build-debian-toolbox: Enable apt sources by default X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=739e7017ea68bf529515666feab89ae02e7c983e;p=bin.git build-debian-toolbox: Enable apt sources by default The format changed in sid, so only apply this to the RFC822-style source files. --- 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