Add new scripts for retreiving bugs via apt-listbugs and storing package selection
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 95-package-information
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/95-package-information
3 # Purpose:       store package information of chroot system
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: Sat Oct 13 17:48:38 CEST 2007 [mika]
8 ################################################################################
9
10 HOSTNAME=''
11 [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
12 [ -n "$HOSTNAME" ] || HOSTNAME=grml
13
14 if [ -x $target/usr/bin/dpkg-query ] ; then
15    $ROOTCMD dpkg-query -W --showformat='${Package}\t${Installed-Size;10}\n' > \
16    /var/log/fai/dirinstall/$HOSTNAME/packages.size
17 fi
18
19 $ROOTCMD COLUMNS=200 dpkg --list > /var/log/fai/dirinstall/$HOSTNAME/dpkg.list
20 $ROOTCMD COLUMNS=200 dpkg --get-selections > /var/log/fai/dirinstall/$HOSTNAME/dpkg.selections
21
22 ## END OF FILE #################################################################