2 # Filename: /etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs
3 # Purpose: retreive list of bugreports of installed packages inside chroot
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 # Latest change: Sun Nov 04 22:40:43 CET 2007 [mika]
8 ################################################################################
13 #apt-listchanges apt-listchanges/confirm boolean false
14 #apt-listchanges apt-listchanges/email-address string root
15 #apt-listchanges apt-listchanges/which select news
16 #apt-listchanges apt-listchanges/frontend select pager
17 #apt-listchanges apt-listchanges/save-seen boolean true
18 if [ -x $target/usr/bin/apt-listchanges ] ; then
19 echo 'apt-listchanges apt-listchanges/confirm boolean true' | $ROOTCMD debconf-set-selections
20 echo 'apt-listchanges apt-listchanges/which select both' | $ROOTCMD debconf-set-selections
23 if [ -r $target/etc/apt/apt.conf.d/10apt-listbugs ] ; then
24 sed -i 's#//DPkg::#DPkg::#' $target/etc/apt/apt.conf.d/10apt-listbugs
27 if ifclass RELEASE ; then
30 [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
31 [ -n "$HOSTNAME" ] || HOSTNAME=grml
33 if [ -r /etc/resolv.conf ] ; then
34 if [ -r $target/etc/resolvconf/run/resolv.conf ] ; then
35 cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf
37 cat /etc/resolv.conf >> $target/etc/resolv.conf
41 if [ -x $target/usr/sbin/apt-listbugs -a -x $target/usr/bin/apt-show-source ] && \
42 [ -x $target/etc/apt/grml/listbugs ] ; then
43 for severity in critical grave serious ; do
44 SEVERITY=$severity $ROOTCMD /etc/apt/grml/listbugs > \
45 /var/log/fai/dirinstall/$HOSTNAME/bugs.${severity} || true # make sure it does not fail
51 ## END OF FILE #################################################################