* [PATCH] image.bbclass: ensure makedevs does return true
@ 2013-10-01 15:40 Saul Wold
2013-10-01 15:52 ` Mark Hatle
0 siblings, 1 reply; 2+ messages in thread
From: Saul Wold @ 2013-10-01 15:40 UTC (permalink / raw)
To: openembedded-core
When doing an incremental image generation, ensure that makedevs returns true when it encounters
a node that already exists, otherwise image generation will fail.
[YOCTO #5288]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/image.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 7650594..463fa71 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -337,7 +337,7 @@ fakeroot do_rootfs () {
for devtable in ${@get_devtable_list(d)}; do
# Always return ture since there maybe already one when use the
# incremental image generation
- makedevs -r ${IMAGE_ROOTFS} -D $devtable
+ makedevs -r ${IMAGE_ROOTFS} -D $devtable || true
done
fi
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] image.bbclass: ensure makedevs does return true
2013-10-01 15:40 [PATCH] image.bbclass: ensure makedevs does return true Saul Wold
@ 2013-10-01 15:52 ` Mark Hatle
0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2013-10-01 15:52 UTC (permalink / raw)
To: openembedded-core
On 10/1/13 10:40 AM, Saul Wold wrote:
> When doing an incremental image generation, ensure that makedevs returns true when it encounters
> a node that already exists, otherwise image generation will fail.
>
> [YOCTO #5288]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/classes/image.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 7650594..463fa71 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -337,7 +337,7 @@ fakeroot do_rootfs () {
> for devtable in ${@get_devtable_list(d)}; do
> # Always return ture since there maybe already one when use the
> # incremental image generation
> - makedevs -r ${IMAGE_ROOTFS} -D $devtable
> + makedevs -r ${IMAGE_ROOTFS} -D $devtable || true
I'm a little worried about this patch. There is a known case where makedevs
will fail with a message indicating it can't do the name -> uid/gid
translations. In this case it just stops, and the nodes are never generated.
The underlying cause is that the passwd/group files never got installed onto the
target. Adding a specific check for this might be a good idea, but doing the ||
true will cause errors like that to be masked.
Perhaps finding a way to patch makedevs to no error when a node already exists?
--Mark
> done
> fi
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-01 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 15:40 [PATCH] image.bbclass: ensure makedevs does return true Saul Wold
2013-10-01 15:52 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox