[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH] 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.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
CC: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
CC: Marcos Matsunaga <Marcos.Matsunaga@xxxxxxxxxx>
---
 standalone-reset | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/standalone-reset b/standalone-reset
index bd34782..dece71a 100755
--- a/standalone-reset
+++ b/standalone-reset
@@ -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"
-- 
2.9.3


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.