From: Yang Shi <yang.shi@windriver.com>
To: Saul Wold <sgw@linux.intel.com>
Cc: yocto@yoctoproject.org, dvhart@linux.intel.com
Subject: Re: [PATCH 2/2] sato: Throw warning when building ISO image without unionfs enabled
Date: Tue, 10 Apr 2012 13:04:05 -0700 [thread overview]
Message-ID: <4F849235.900@windriver.com> (raw)
In-Reply-To: <4F8484A4.30703@linux.intel.com>
On 4/10/2012 12:06 PM, Saul Wold wrote:
> On 04/09/2012 03:15 PM, Yang Shi wrote:
>> [YOCTO #1487]
>>
>> For the liveCD image, interactive bootup is needed, but psplash
>> prevents from
>> booting interactively. In such case ISO image is not usable, so throw
>> warning
>> info when building ISO image without unionfs enabled in kernel.
>>
>> Signed-off-by: Yang Shi<yang.shi@windriver.com>
>> ---
>> meta/recipes-sato/images/core-image-sato.bb | 14 ++++++++++++++
>> 1 files changed, 14 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/recipes-sato/images/core-image-sato.bb
>> b/meta/recipes-sato/images/core-image-sato.bb
>> index 11c3318..871b227 100644
>> --- a/meta/recipes-sato/images/core-image-sato.bb
>> +++ b/meta/recipes-sato/images/core-image-sato.bb
>> @@ -9,3 +9,17 @@ IMAGE_FEATURES += "apps-console-core
>> ${SATO_IMAGE_FEATURES}"
>> LICENSE = "MIT"
>>
>> inherit core-image
>> +
>> +LIVE = "${@base_contains('IMAGE_FSTYPES', 'live', 'yes', 'no', d)}"
>> +
>> +do_check_unionfs() {
>> + if [ "${NOISO}" = "1" ]; then
>> + return
>> + fi
>> +
>> + if [ "${LIVE}" = "yes" ]&& ! grep -q "CONFIG_UNION_FS=y"
>> ${STAGING_KERNEL_DIR}/.config; then
> I think you are missing a "]" at the end of this "if [" test.
It is 'if [ "${LIVE}" = "yes" ]'.
>> + bbwarn "Building LIVE CD without UNION FS enabled in
>> kernel"
>> + fi
>> +}
>> +
>> +addtask check_unionfs before do_build after do_bootimg
>
> This change is causing a new failure:
Yes, I mentioned this in my mail, the workaround is to add IMAGE_FSTYPE
+= "live" in conf/local.conf
Bruce pointed out this is a known problem in poky.
Thanks,
Yang
>
> Traceback (most recent call last):
> File
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/bitbake/lib/bb/server/process.py",
> line 122, in ProcessServer.idle_commands(delay=0.1):
> try:
> > retval = function(self, data, False)
> if retval is False:
> File
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/bitbake/lib/bb/cooker.py",
> line 1134, in buildTargetsIdle(server=<ProcessServer(ProcessServer-1,
> started)>, rq=<bb.runqueue.RunQueue instance at 0xb6891b8>, abort=False):
> try:
> > retval = rq.execute_runqueue()
> except runqueue.TaskFailure as exc:
> File
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/bitbake/lib/bb/runqueue.py",
> line 948, in RunQueue.execute_runqueue():
> self.rqexe = RunQueueExecuteDummy(self)
> > if self.rqdata.prepare() == 0:
> self.state = runQueueComplete
> File
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/bitbake/lib/bb/runqueue.py",
> line 719, in RunQueueData.prepare():
>
> procdep.append(self.taskData.fn_index[self.runq_fnid[dep]] + "." +
> self.runq_task[dep])
> > self.runq_hash[task] =
> bb.parse.siggen.get_taskhash(self.taskData.fn_index[self.runq_fnid[task]],
> self.runq_task[task], procdep, self.dataCache)
>
> File
> "/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/bitbake/lib/bb/siggen.py",
> line 153, in
> SignatureGeneratorOEBasicHash.get_taskhash(fn='/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/meta/recipes-sato/images/core-image-sato.bb',
> task='do_bootimg', deps=[], dataCache=<bb.cache.CacheData object at
> 0x2ede190>):
> k = fn + "." + task
> > data = dataCache.basetaskhash[k]
> self.runtaskdeps[k] = []
> KeyError:
> '/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/meta/recipes-sato/images/core-image-sato.bb.do_bootimg'
>
>
next prev parent reply other threads:[~2012-04-10 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 22:15 [V2 PATCH 0/2] Fix init-live.sh to use unionfs for live CD and remove questioned ISO image Yang Shi
2012-04-09 22:15 ` [PATCH 1/2] initrdscripts: fix init-live.sh and use unionfs Yang Shi
2012-04-10 18:41 ` Darren Hart
2012-04-09 22:15 ` [PATCH 2/2] sato: Throw warning when building ISO image without unionfs enabled Yang Shi
2012-04-10 18:43 ` Darren Hart
2012-04-10 19:06 ` Saul Wold
2012-04-10 20:04 ` Yang Shi [this message]
2012-04-11 18:17 ` [V2 PATCH 0/2] Fix init-live.sh to use unionfs for live CD and remove questioned ISO image Saul Wold
2012-04-27 21:31 ` [yocto] " Saul Wold
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=4F849235.900@windriver.com \
--to=yang.shi@windriver.com \
--cc=dvhart@linux.intel.com \
--cc=sgw@linux.intel.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.