fi
# FAI softupdate does not execute upgrade, so let's do it on our own:
- $ROOTCMD apt-get update
- if [ -x $target/usr/bin/aptitude ] ; then
- if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then
- $ROOTCMD aptitude -y safe-upgrade
- else
- $ROOTCMD aptitude -y upgrade
- fi
- else
- $ROOTCMD apt-get -y upgrade
- fi
+# $ROOTCMD apt-get update
+# if [ -x $target/usr/bin/aptitude ] ; then
+# if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then
+# $ROOTCMD aptitude -y safe-upgrade
+# else
+# $ROOTCMD aptitude -y upgrade
+# fi
+# else
+# $ROOTCMD apt-get -y upgrade
+# fi
else # no softupdate but fresh installation
[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
[ -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
+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 #################################################################