Skip to content

Commit

Permalink
Make apt store all downloaded deb-files
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 14, 2024
1 parent 936efa9 commit 3a7c63d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/image-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ sed -i 's/#SystemMaxUse=/SystemMaxUse=200M/' /etc/systemd/journald.conf
echo_stamp "Move /etc/ld.so.preload out of the way"
mv /etc/ld.so.preload /etc/ld.so.preload.disabled-for-build

echo_stamp "Setup apt so it store all the downloaded packages"
echo 'APT::Get::Download-Only "true";' > /etc/apt/apt.conf.d/02keep-debs
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >> /etc/apt/apt.conf.d/02keep-debs

echo_stamp "End of init image"

0 comments on commit 3a7c63d

Please sign in to comment.