In
b8134c7fa60d "mg-debian-installer-update: Print the correct value
for TftpDiVersion", the output of mg-debian-installer-update was
changed to be a config fragment. But standalone-reset expected it to
be just the date value, and was not updated.
Update it now. And leave a comment in mg-debian-installer-update to
stop this happening again.
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
echo "TftpDiVersion $date"
echo "TftpDiVersion_$suite $date"
+# ^ above two lines parsed ad-hoc by standalone-reset
echo >&2 "downloaded $dstroot/$dst"
echo "** need to generate d-i with firmware for $arch"
div=`./mg-debian-installer-update \
$suite $arch $firmware`
+ div="${div%
+*}"
+ div="${div#* }"
if [ -n "$div" ] ; then
rm -f "$tftp/$dibase/$arch/current-$suite"
ln -s $div "$tftp/$dibase/$arch/current-$suite"