X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F95-package-information;h=94687c37ee3eed9ec76119fbaac15e059628b192;hb=b68164e384f6c7d682212995fc96ab919a2677f0;hp=2cce18ecca816a6b5ff24b5576628f26cec299a4;hpb=9a408a8ff28183b77116cdd73e368834eabdb5ae;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/95-package-information b/etc/grml/fai/config/scripts/GRMLBASE/95-package-information index 2cce18e..94687c3 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/95-package-information +++ b/etc/grml/fai/config/scripts/GRMLBASE/95-package-information @@ -4,19 +4,30 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sat Oct 13 17:48:38 CEST 2007 [mika] +# Latest change: Sun Dec 16 16:23:04 CET 2007 [mika] ################################################################################ HOSTNAME='' -[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf +[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf +[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local [ -n "$HOSTNAME" ] || HOSTNAME=grml +if ! [ -d /var/log/fai/"$HOSTNAME"/last/ ] ; then + echo "Error: /var/log/fai/"$HOSTNAME"/last/ not available. Exiting.">&2 + exit 1 +fi + if [ -x $target/usr/bin/dpkg-query ] ; then $ROOTCMD dpkg-query -W --showformat='${Package}\t${Installed-Size;10}\n' > \ - /var/log/fai/dirinstall/$HOSTNAME/packages.size + /var/log/fai/$HOSTNAME/last/packages.size fi -COLUMNS=200 $ROOTCMD dpkg --list > /var/log/fai/dirinstall/$HOSTNAME/dpkg.list -COLUMNS=200 $ROOTCMD dpkg --get-selections > /var/log/fai/dirinstall/$HOSTNAME/dpkg.selections +# generate the package list and store it on the ISO itself for grml-docs: +[ -d $target/usr/share/doc/grml-docs/packages ] || mkdir $target/usr/share/doc/grml-docs/packages +COLUMNS=200 $ROOTCMD dpkg --list > $target/usr/share/doc/grml-docs/packages/dpkg_list + +# store package list for the build process logs as well: +COLUMNS=200 $ROOTCMD dpkg --list > /var/log/fai/$HOSTNAME/last/dpkg.list +COLUMNS=200 $ROOTCMD dpkg --get-selections > /var/log/fai/$HOSTNAME/last/dpkg.selections ## END OF FILE #################################################################