From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id D0B926B4F4 for ; Wed, 7 Aug 2013 07:30:10 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r777UBKb023172 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 7 Aug 2013 00:30:11 -0700 (PDT) Received: from [128.224.162.168] (128.224.162.168) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.342.3; Wed, 7 Aug 2013 00:30:10 -0700 Message-ID: <5201F783.4020601@windriver.com> Date: Wed, 7 Aug 2013 15:30:11 +0800 From: Rongqing Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: References: <947336a1ef2b936328ba6fcf519d55a4eda7085d.1374643300.git.rongqing.li@windriver.com> In-Reply-To: <947336a1ef2b936328ba6fcf519d55a4eda7085d.1374643300.git.rongqing.li@windriver.com> Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH 1/1] systemd: ignore qemu output, and check its return code 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, 07 Aug 2013 07:30:11 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit ping On 07/24/2013 01:24 PM, rongqing.li@windriver.com wrote: > From: "Roy.Li" > > qemu prints errors sometime, but it works well, the error information > can be captured by rpm, and lead to rpm failure. like: > > $export D=/tmp/rootfs;.../usr/bin/qemu-i386 -L $D \ > -E LD_LIBRARY_PATH=$D/usr/lib:$D/lib $D/bin/udevadm hwdb --update --root $D > qemu: Unsupported syscall: 240 > $echo $? > $ 0 > > Signed-off-by: Roy.Li > --- > meta/recipes-core/systemd/systemd_204.bb | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-core/systemd/systemd_204.bb b/meta/recipes-core/systemd/systemd_204.bb > index b8b1290..10bde33 100644 > --- a/meta/recipes-core/systemd/systemd_204.bb > +++ b/meta/recipes-core/systemd/systemd_204.bb > @@ -277,7 +277,9 @@ ALTERNATIVE_PRIORITY[poweroff] ?= "300" > pkg_postinst_udev-hwdb () { > if test -n "$D"; then > ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \ > - --root $D > + --root $D 2>/dev/null > + > + [ $? -ne 0 ] && exit 1 > else > udevadm hwdb --update > fi > -- Best Reagrds, Roy | RongQing Li