Browse files

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.
  • Loading branch information...
mika committed Sep 10, 2013
1 parent 7913988 commit d04892a34561ab15943e526b249aa036da8185a1
Showing with 10 additions and 0 deletions.
  1. +4 −0 docs/grml-live.txt
  2. +6 −0 etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam
@@ -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
@@ -11,6 +11,12 @@ if ifclass NO_ONLINE ; then
exit 0
+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
set -u
bailout() {

0 comments on commit d04892a

Please sign in to comment.