From 3d0e9125f0f5d5040593f4f0a6c3e10ec1455764 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 16 Oct 2021 00:05:48 +0200 Subject: [PATCH] build: reduce ISO image size (don't keep APT indices on the live filesystem) --- auto/config | 1 + config/hooks/normal/0900-clear-apt-cache.hook.chroot | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/auto/config b/auto/config index df5259f..43ec3a5 100755 --- a/auto/config +++ b/auto/config @@ -4,6 +4,7 @@ lb config noauto \ --apt-recommends false \ +--apt-indices false \ --architectures amd64 \ --archive-areas 'main contrib non-free' \ --backports true \ diff --git a/config/hooks/normal/0900-clear-apt-cache.hook.chroot b/config/hooks/normal/0900-clear-apt-cache.hook.chroot index 63c5d10..41ee36d 100755 --- a/config/hooks/normal/0900-clear-apt-cache.hook.chroot +++ b/config/hooks/normal/0900-clear-apt-cache.hook.chroot @@ -1,8 +1,5 @@ #!/bin/sh 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 rm -vr /var/cache/apt/ \ No newline at end of file