Move scripts/GRMLBASE/40-deborphan towards DEBORPHAN class as file 10-whitelist
authorMichael Prokop <mika@grml.org>
Wed, 20 May 2020 12:29:31 +0000 (14:29 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 20 May 2020 12:33:11 +0000 (14:33 +0200)
If the DEBORPHAN class is used before the GRMLBASE class when invoking
grml-live, then any whitelisting executed via
scripts/GRMLBASE/40-deborphan will happen too late, which is not obvious
and surprising. Instead let's move scripts/GRMLBASE/40-deborphan towards
the DEBORPHAN class and name it as "10-whitelist".

debian/grml-live.maintscript
etc/grml/fai/config/scripts/DEBORPHAN/10-whitelist [moved from etc/grml/fai/config/scripts/GRMLBASE/40-deborphan with 67% similarity]

index dcf169f..5ab930d 100644 (file)
@@ -1,3 +1,4 @@
 rm_conffile /etc/grml/fai/config/files/etc/apt/grml.key/GRMLBASE 0.32.3~
 rm_conffile /etc/grml/fai/config/files/etc/systemd/system/serial-getty@ttyS0.service.d/override.conf/GRMLBASE 0.33.2~
 rm_conffile /etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils 0.33.0~
 rm_conffile /etc/grml/fai/config/files/etc/apt/grml.key/GRMLBASE 0.32.3~
 rm_conffile /etc/grml/fai/config/files/etc/systemd/system/serial-getty@ttyS0.service.d/override.conf/GRMLBASE 0.33.2~
 rm_conffile /etc/grml/fai/config/scripts/GRMLBASE/36-cpufrequtils 0.33.0~
+rm_conffile /etc/grml/fai/config/scripts/GRMLBASE/40-deborphan 0.35.0~
@@ -1,6 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/40-deborphan
-# Purpose:       configure packages for deborphan (usually exception rules)
+# Filename:      ${GRML_FAI_CONFIG}/config/scripts/DEBORPHAN/10-whitelist
+# Purpose:       whitelist packages to keep with deborphan
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
@@ -9,8 +9,8 @@
 set -u
 set -e
 
 set -u
 set -e
 
-# workaround for dnsutils transitional package, drop as soon as bind9-dnsutils
-# is available in all supported releases
+# workaround for dnsutils transitional package, we can drop this as soon as the
+# bind9-dnsutils package is available in all our supported Debian releases
 if [[ -r "${target}/usr/share/doc/dnsutils" ]] && [ -x "${target}/usr/bin/deborphan" ] ; then
   $ROOTCMD deborphan --add-keep dnsutils || /bin/true
 fi
 if [[ -r "${target}/usr/share/doc/dnsutils" ]] && [ -x "${target}/usr/bin/deborphan" ] ; then
   $ROOTCMD deborphan --add-keep dnsutils || /bin/true
 fi