]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
standalone-reset: Check for TftpPxeDir
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 26 Oct 2016 18:51:45 +0000 (14:51 -0400)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 26 Oct 2016 15:53:35 +0000 (16:53 +0100)
While patch: "README: Mention the / requirement in Tftp[Pxe|Tmp]Dir"
we should also double-check that the directory actually exists.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
standalone-reset

index c587e60ff1a2ad38d7cb864a884329487a3eec5b..69a32261d75b222f1a88b4f62a1c63dda280ac7f 100755 (executable)
@@ -101,6 +101,9 @@ else
        tftptmp=`getconfig TftpTmpDir`
        ensure_dir "$tftp$tftptmp"
 
+       tftpconfig=`getconfig TftpPxeDir`
+       ensure_dir "$tftp$tftpconfig"
+
        dibase=`getconfig TftpDiBase`
        suite=`getconfig DebianSuite`
        diver=`getconfig_TftpDiVersion_suite $suite`