[OE-core] [PATCH] wic: Prevent duplicate entries on fstab

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Mar 10 13:51:37 UTC 2017


On Fri, Mar 10, 2017 at 10:43 AM, Patrick Ohly <patrick.ohly at intel.com> wrote:
> On Fri, 2017-03-10 at 10:32 -0300, Otavio Salvador wrote:
>> On Fri, Mar 10, 2017 at 4:33 AM, Patrick Ohly <patrick.ohly at intel.com> wrote:
>> > Suppose IMAGE_FSTYPES = "ext4 wic", and the WKS_FILE has multiple
>> > partitions and thus needs more entries in /etc/fstab than the
>> > single-partition "ext4" - the result of do_rootfs simply cannot work for
>> > both.
>>
>> That is the point. If the machine requires to use multiple partitions
>> the ext4 should have the /etc/fstab ready for use when deployed.
>
> My thinking was a bit different. I had in mind a setup where the "ext4"
> format as used by qemu has all files of the rootfs in a single
> partition, whereas the wic image splits out the data into multiple
> partitions (it recently gained such a feature).
>
> This could be made to work if wic knew how to change fstab without
> rewriting the root filesystem. But as that can't be done, such a
> combination of different image formats is only possible for a rootfs
> which always works with just a single partition.

So it seems like we need a command line option for wic which says for
it to generate/do not generate the /etc/fstab.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list