X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=51e8859086886b5dc2dad75cc35122ff6c85ee38;hp=5a4b47314dc79cd27c0b817c7e093e4e43b883b4;hb=fc0c329616fc039b242bd06e233c01e652b5703b;hpb=c7aa2bcce1a29cfe3af0b3c0c0f6b41cca650809 diff --git a/grml-live b/grml-live index 5a4b473..51e8859 100755 --- a/grml-live +++ b/grml-live @@ -1142,9 +1142,10 @@ if [ -d /usr/share/grml-live-db ] ; 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 - [ -n "$DPKG_DBOPTIONS" ] || DPKG_DBOPTIONS="-d $DPKG_DATABASE --logfile $LOGFILE --flavour $GRML_NAME < $DPKG_LIST" + [ -n "$DPKG_DBOPTIONS" ] || DPKG_DBOPTIONS="--database $DPKG_DATABASE --logfile $LOGFILE --flavour $GRML_NAME --dpkg $DPKG_LIST" if ! [ -x "$DPKG_DBSCRIPT" ] ; then + log "Error: $DPKG_DBSCRIPT is not executable, can not log dpkg information." eerror "Error: $DPKG_DBSCRIPT is not executable, can not log dpkg information." ; eend 1 bailout 14 fi @@ -1156,10 +1157,13 @@ if [ -d /usr/share/grml-live-db ] ; then #fi if ! [ -r "$DPKG_LIST" ] ; then + log "Error reading $DPKG_LIST - can not provide information to $DPKG_DBSCRIPT" 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" + log "Logging $DPKG_LIST to database $DPKG_DATABASE" + log "Executing $DPKG_DBSCRIPT $DPKG_DBOPTIONS" eindent if DB_INFO=$("$DPKG_DBSCRIPT" $DPKG_DBOPTIONS 2>&1) ; then