deborphan: add qemu-kvm to list of packages which are never to be reported
authorMichael Prokop <mika@grml.org>
Fri, 21 Apr 2017 12:31:09 +0000 (14:31 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 21 Apr 2017 12:35:26 +0000 (14:35 +0200)
In commit ec12218051e8c1 we added qemu-system-x86 as underlying
dependency for qemu-kvm, now qemu-kvm is considered for removal.
This seems to be the case because qemu-kvm depends on
qemu-system-x86 and and even though we explicitely ask for both
packages to be installed, then qemu-kvm is considered for
removal. Let's avoid this by adding qemu-kvm to the list of
packages which are never to be reported by deborphan, then it's
not automatically removed via DEBORPHAN/98-clean-chroot.

Noticed via "grml-live-missing-packages.test_missing_packages_qemu-kvm"
in Jenkins daily builds.

etc/grml/fai/config/scripts/GRMLBASE/40-deborphan

index 148880d..814d5d8 100755 (executable)
@@ -21,9 +21,13 @@ if [ -r $target/usr/bin/ewfinfo -a -x $target/usr/bin/deborphan ] ; then
    $ROOTCMD deborphan --add-keep libewf1 || /bin/true
 fi
 
    $ROOTCMD deborphan --add-keep libewf1 || /bin/true
 fi
 
-if [ -r $target//usr/lib/libstdc++-libc6.2-2.so.3 -a -x $target/usr/bin/deborphan ] ; then
+if [ -r $target/usr/lib/libstdc++-libc6.2-2.so.3 -a -x $target/usr/bin/deborphan ] ; then
    $ROOTCMD deborphan --add-keep libstdc++2.10-glibc2.2 || /bin/true
 fi
 
    $ROOTCMD deborphan --add-keep libstdc++2.10-glibc2.2 || /bin/true
 fi
 
+if [ -r "$target"/usr/bin/kvm -a -x "$target"/usr/bin/deborphan ] ; then
+   $ROOTCMD deborphan --add-keep qemu-kvm || /bin/true
+fi
+
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2