# this was default behaviour until grml-live 0.9.34:
if [ -n "$ZERO_LOGFILE" ] ; then
PRESERVE_LOGFILE='' # make sure it's cleaned then
# this was default behaviour until grml-live 0.9.34:
if [ -n "$ZERO_LOGFILE" ] ; then
PRESERVE_LOGFILE='' # make sure it's cleaned then
# NOTE: This file is *NOT* meant for manual customisation! This file is
# modified by grml-live and any changes might be overriden.
# You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf*
# NOTE: This file is *NOT* meant for manual customisation! This file is
# modified by grml-live and any changes might be overriden.
# You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf*
# NOTE: This file is *NOT* meant for manual customisation! This file is
# modified by grml-live and any changes might be overriden.
# You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf*
# NOTE: This file is *NOT* meant for manual customisation! This file is
# modified by grml-live and any changes might be overriden.
# You might consider using GRML_LIVE_SOURCES in /etc/grml/grml-live.conf*
# We'll definitely drop this once people build >2.6.28-grml* only and
# the squashfs-tools vs. squashfs-lzma-tools + zlib vs. lzma situation
# is settling...
# We'll definitely drop this once people build >2.6.28-grml* only and
# the squashfs-tools vs. squashfs-lzma-tools + zlib vs. lzma situation
# is settling...
# 1) doesn't use -nolzma in $SQUASHFS_OPTIONS or the grml-live's -z option *and*
# 2) builds against kernel version <=2.6.28-grml[64]
if ls $CHROOT_OUTPUT/boot/vmlinuz* >/dev/null 2>&1 ; then
# 1) doesn't use -nolzma in $SQUASHFS_OPTIONS or the grml-live's -z option *and*
# 2) builds against kernel version <=2.6.28-grml[64]
if ls $CHROOT_OUTPUT/boot/vmlinuz* >/dev/null 2>&1 ; then
DPKG_LIST="/var/log/fai/$HOSTNAME/last/dpkg.list" # the dpkg --list output of the chroot:
[ -n "$DPKG_DATABASE" ] || DPKG_DATABASE=/var/log/grml-live.db
[ -n "$DPKG_DBSCRIPT" ] || DPKG_DBSCRIPT=/usr/share/grml-live-db/scripts/dpkg-to-db
DPKG_LIST="/var/log/fai/$HOSTNAME/last/dpkg.list" # the dpkg --list output of the chroot:
[ -n "$DPKG_DATABASE" ] || DPKG_DATABASE=/var/log/grml-live.db
[ -n "$DPKG_DBSCRIPT" ] || DPKG_DBSCRIPT=/usr/share/grml-live-db/scripts/dpkg-to-db
eerror "Error reading $DPKG_LIST - can not provide information to $DPKG_DBSCRIPT" ; eend 1
bailout 14
else
einfo "Logging $DPKG_LIST to database $DPKG_DATABASE"
eerror "Error reading $DPKG_LIST - can not provide information to $DPKG_DBSCRIPT" ; eend 1
bailout 14
else
einfo "Logging $DPKG_LIST to database $DPKG_DATABASE"