Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Rongqing Li <rongqing.li@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] systemd: ignore qemu output, and check its return code
Date: Wed, 7 Aug 2013 11:26:06 -0700	[thread overview]
Message-ID: <1318833D-CF46-4453-8ECA-ED9C92AD59C8@gmail.com> (raw)
In-Reply-To: <5201F783.4020601@windriver.com>


On Aug 7, 2013, at 12:30 AM, Rongqing Li <rongqing.li@windriver.com> wrote:

> ping
> 
> On 07/24/2013 01:24 PM, rongqing.li@windriver.com wrote:
>> From: "Roy.Li" <rongqing.li@windriver.com>
>> 
>> qemu prints errors sometime, but it works well,


how do you know ?

>> 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 <rongqing.li@windriver.com>
>> ---
>>  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
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



  parent reply	other threads:[~2013-08-07 18:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24  5:24 [PATCH 0/1] systemd: ignore qemu output, and check its return code rongqing.li
2013-07-24  5:24 ` [PATCH 1/1] " rongqing.li
2013-07-24  5:34   ` Khem Raj
2013-07-24  6:15     ` Rongqing Li
2013-07-26 11:53       ` Burton, Ross
2013-08-05  5:21         ` Rongqing Li
2013-08-07  7:30   ` Rongqing Li
2013-08-07 11:55     ` Burton, Ross
2013-08-08  8:55       ` Rongqing Li
2013-08-08 10:57         ` Burton, Ross
2013-08-07 18:26     ` Khem Raj [this message]
2013-08-08  8:53       ` Rongqing Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318833D-CF46-4453-8ECA-ED9C92AD59C8@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rongqing.li@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox