[yocto] overriding a class in custom layer

Chris Larson clarson at kergoth.com
Wed Jan 25 09:04:39 PST 2012


On Wed, Jan 25, 2012 at 8:56 AM, Paul Eggleton
<paul.eggleton at linux.intel.com> wrote:
> On Wednesday 25 January 2012 11:03:16 Joshua Immanuel wrote:
>> On Tue, 2012-01-24 at 16:17 +0000, Paul Eggleton wrote:
>> > I'd also say, what is in the classes is intended to work for everyone,
>> > so if there's something in the core classes that is not working well
>> > for your situation we'd really like to hear about it - hopefully we
>> > can incorporate whatever changes you need and you can avoid having to
>> > overlay the entire class.
>>
>> At present when we build an image, everything gets under one partition.
>> For my use case I need two images (denoting different partitions)
>>      1. rootfs image (mount point: '/', mounted as ro)
>>      2. data partition image (mount point: say '/data' mounted as rw)
>>
>> While generating the image, I construct the /etc/fstab file manually by
>> representing filesystems by their uuids (generated using uuidgen). So,
>> to set this uuid in generated image I try to override the
>> image_types.bbclass and using tune2fs I set the uuid for the generated
>> images.
>
> AFAIK we don't already have the ability to do this, but it sounds very useful.
> If it can be something that can be enabled and configured relatively easily
> then it would be great to have in OE-Core as I can imagine others making use
> of it.


That does sound nice. Actually, it'd also be nice to come up with a
declarative way to express info about partitioning in general, which
would ideally result in an automatic split up of the rootfs across
those partitions when appropriate. Hmmm.
-- 
Christopher Larson



More information about the yocto mailing list