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=e6d82f826691794100d240295775df95d2e30f39;hpb=68b9fb146e8702b2f6a790e3d9486ca36f0d9f76;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 e6d82f8..94687c3 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/95-package-information +++ b/etc/grml/fai/config/scripts/GRMLBASE/95-package-information @@ -4,11 +4,12 @@ # 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 @@ -21,6 +22,11 @@ if [ -x $target/usr/bin/dpkg-query ] ; then /var/log/fai/$HOSTNAME/last/packages.size fi +# 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