DEBORPHAN/10-whitelist: provide workaround for Debian bug #929273
[grml-live.git] / etc / grml / fai / config / scripts / DEBORPHAN / 10-whitelist
index 3fe7320..0c145f7 100755 (executable)
@@ -13,7 +13,9 @@ set -e
 # bind9-dnsutils package is available in all our supported Debian releases
 if [[ -r "${target}/usr/share/doc/dnsutils" ]] && [ -x "${target}/usr/bin/deborphan" ] ; then
   echo "Adding dnsutils to deborphan whitelist"
-  $ROOTCMD deborphan --add-keep dnsutils || /bin/true
+  # workaround for https://bugs.debian.org/929273 ("fseek on /var/lib/deborphan/keep: Invalid argument")
+  $ROOTCMD touch /var/lib/deborphan/keep
+  $ROOTCMD deborphan --add-keep dnsutils
 fi
 
 ## END OF FILE #################################################################