Make apt store all downloaded deb-files

This commit is contained in:
Oleg Kalachev
2024-04-14 18:52:17 +03:00
parent 936efa985d
commit fdc650ec2a

View File

@@ -58,4 +58,7 @@ sed -i 's/#SystemMaxUse=/SystemMaxUse=200M/' /etc/systemd/journald.conf
echo_stamp "Move /etc/ld.so.preload out of the way" echo_stamp "Move /etc/ld.so.preload out of the way"
mv /etc/ld.so.preload /etc/ld.so.preload.disabled-for-build mv /etc/ld.so.preload /etc/ld.so.preload.disabled-for-build
echo_stamp "Setup apt so it store all the downloaded packages"
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/02keep-debs
echo_stamp "End of init image" echo_stamp "End of init image"