From d04892a34561ab15943e526b249aa036da8185a1 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 10 Sep 2013 10:33:15 +0200 Subject: [PATCH] Execute freshclam only if class FRESHCLAM is set A current grml-full daily ISO has ~360MB without freshclam data, including freshclam data it has ~429MB - this isn't worth the disk space, especially as you're interested in up2date definitions anyway and freshclam can be executed on the live ISO then. --- docs/grml-live.txt | 4 ++++ etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/docs/grml-live.txt b/docs/grml-live.txt index 8b2f8a1..1c6a0e7 100644 --- a/docs/grml-live.txt +++ b/docs/grml-live.txt @@ -318,6 +318,10 @@ selected. The following classes are predefined: * DEBORPHAN: get rid of all packages listed in output of deborphan +* FRESHCLAM: execute freshclam (if it's present) to update clamav definitions +(increases resulting ISO size ~70MB). By default it's skipped to avoid bigger +ISO size. + * GRMLBASE: the main class responsible for getting a minimal subset of what's defining a Grml system. Important parts of the buildprocess are specified in this class as well, so unless you have a really good reason you should always diff --git a/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam b/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam index 2996c20..3275bb1 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam +++ b/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam @@ -11,6 +11,12 @@ if ifclass NO_ONLINE ; then exit 0 fi +if ! ifclass FRESHCLAM ; then + echo "Ignoring script 92-update-freshclam as FRESHCLAM is NOT set." + echo "Executing freshclam increases the ISO for ~70MB, not considering as default." + exit 0 +fi + set -u bailout() { -- 2.1.4