build: reduce ISO image size (don't keep APT indices on the live filesystem)

This commit is contained in:
nodiscc
2021-10-16 00:05:48 +02:00
parent d1acca576b
commit 3d0e9125f0
2 changed files with 1 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
lb config noauto \ lb config noauto \
--apt-recommends false \ --apt-recommends false \
--apt-indices false \
--architectures amd64 \ --architectures amd64 \
--archive-areas 'main contrib non-free' \ --archive-areas 'main contrib non-free' \
--backports true \ --backports true \

View File

@@ -1,8 +1,5 @@
#!/bin/sh #!/bin/sh
echo "I: running $0" echo "I: running $0"
# clear APT package download cache to reduce the image size from ~100MB
rm -vr /var/lib/apt/lists/
# clear APT package list cache to reduce the image size from ~180MB # clear APT package list cache to reduce the image size from ~180MB
rm -vr /var/cache/apt/ rm -vr /var/cache/apt/