From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 3A3FB606BF for ; Wed, 4 Feb 2015 23:18:14 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 04 Feb 2015 15:18:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,520,1418112000"; d="scan'208";a="647483663" Received: from mtbauma1-mobl1.amr.corp.intel.com (HELO [10.252.136.235]) ([10.252.136.235]) by orsmga001.jf.intel.com with ESMTP; 04 Feb 2015 15:18:15 -0800 Message-ID: <1423091895.18649.26.camel@picadillo> From: Tom Zanussi To: Alexandre Belloni Date: Wed, 04 Feb 2015 17:18:15 -0600 In-Reply-To: <1423090155-14149-1-git-send-email-alexandre.belloni@free-electrons.com> References: <1423090155-14149-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH] wic: bootimg-partition: Stop removing whole workdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 23:18:22 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2015-02-04 at 23:49 +0100, Alexandre Belloni wrote: > Stop removing the whole working directory as this is also removing > eventual previously created partition images, leading to image creation > failures. > I'm surprised - I've never run into a problem like this. Can you give more details and/or a reproducer? Thanks, Tom > Signed-off-by: Alexandre Belloni > --- > scripts/lib/wic/plugins/source/bootimg-partition.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py > index 6ba39a01f700..c5eb7b8b801b 100644 > --- a/scripts/lib/wic/plugins/source/bootimg-partition.py > +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py > @@ -66,7 +66,7 @@ class BootimgPartitionPlugin(SourcePlugin): > - copies all files listed in IMAGE_BOOT_FILES variable > """ > hdddir = "%s/boot" % cr_workdir > - rm_cmd = "rm -rf %s" % cr_workdir > + rm_cmd = "rm -rf %s/boot" % cr_workdir > exec_cmd(rm_cmd) > > install_cmd = "install -d %s" % hdddir