From patchwork Wed Oct 26 18:51:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9397527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B2BFC60231 for ; Wed, 26 Oct 2016 15:45:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9840929B1C for ; Wed, 26 Oct 2016 15:45:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88B9429C17; Wed, 26 Oct 2016 15:45:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_03_06, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0369029B1C for ; Wed, 26 Oct 2016 15:45:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzQMF-0001vP-KL; Wed, 26 Oct 2016 15:43:15 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzQME-0001vG-AH for xen-devel@lists.xenproject.org; Wed, 26 Oct 2016 15:43:14 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id C2/BD-02102-11FC0185; Wed, 26 Oct 2016 15:43:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeJIrShJLcpLzFFi42KZM10+UFfgvEC EQd9+VYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNaNp5XumglmsFQ3Nz9gbGI+wdDFycQgJdDBJ /N+yjBHC+cYosadjE1RmI6PEn79r2SCcbkaJjzNusnYxcnCwCZhIvFnl2MXIySEiYCWx/toyV hCbWSBc4v/+DiYQW1jAXOL85OlgNouAqsTG01/ZQGxeATeJTd83s4PYEgJyEueP/2QGGckp4C 7Rd1AUJCwEVLJnRQcbRImxRN+sPpYJjHwLGBlWMaoXpxaVpRbpmuolFWWmZ5TkJmbm6BoaGOv lphYXJ6an5iQmFesl5+duYgSGST0DA+MOxstfnQ4xSnIwKYnyvjkhECHEl5SfUpmRWJwRX1Sa k1p8iFGGg0NJgvf7WaCcYFFqempFWmYOMGBh0hIcPEoivFwgad7igsTc4sx0iNQpRmOOBT9ur 2XimLX8zlomIZa8/LxUKXFe7nNApQIgpRmleXCDYJF0iVFWSpiXkYGBQYinILUoN7MEVf4Voz gHo5Iw7yGQhTyZeSVw+14BncIEdMr0dLBTShIRUlLA2NRYkmO7r/dxg+2cjRp9BlmGH7LvFb2 /f919Zos1T6bJCYb0o5+mrv0oaniqMeT1rMMPY/VO9ax6KvZsgXlgWGjIk5cXp7bYiZx9qtey XMBx24S51mufnPkWqbMy027y2RsXz189cz5fxfLUG6EYieDYuYK8ffHePS3rw36flDTx77+8Y 3pTkBJLcUaioRZzUXEiAEcdZBqfAgAA X-Env-Sender: konrad.wilk@oracle.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1477496590!67541185!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.0.13; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61799 invoked from network); 26 Oct 2016 15:43:12 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 26 Oct 2016 15:43:12 -0000 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u9QFh8NI024751 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Oct 2016 15:43:08 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u9QFh8Cp006425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Oct 2016 15:43:08 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u9QFh85W000715; Wed, 26 Oct 2016 15:43:08 GMT Received: from osstest.dumpdata.com (/209.6.196.81) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 26 Oct 2016 08:43:07 -0700 From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, ian.jackson@citrix.com Date: Wed, 26 Oct 2016 14:51:45 -0400 Message-Id: <1477507905-85518-1-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1477505649-84103-4-git-send-email-konrad.wilk@oracle.com> References: <1477505649-84103-4-git-send-email-konrad.wilk@oracle.com> X-Source-IP: aserv0021.oracle.com [141.146.126.233] Cc: Marcos.Matsunaga@oracle.com, Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH] standalone-reset: Check for TftpPxeDir X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP While patch: "README: Mention the / requirement in Tftp[Dir|Tmp]Dir" we should also double-check that the directory actually exists. Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Ian Jackson --- standalone-reset | 3 +++ 1 file changed, 3 insertions(+) diff --git a/standalone-reset b/standalone-reset index c587e60..69a3226 100755 --- a/standalone-reset +++ b/standalone-reset @@ -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`