Skip to contentSkip to conversation

standalone-reset: Fix when TftpDiVersion not set in config

PATCH New Ian Jackson 1 participant 1 message Oct 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 standalone-reset: Fix when TftpDiVersion not set in config

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 <[email protected]>
CC Marcos Matsunaga <[email protected]>
---
 standalone-reset | 3 +++
 1 file changed, 3 insertions(+)
standalone-reset +3 -0
index bd34782..dece71a 100755
@@ -109,6 +109,9 @@ else
 			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"
Signature · 7 lines
2.9.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel