You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So that i will only need to build one debootstrap chroot and then copy it to all of my ext4 images. without having to manage several copies of the chroot.
Then apply/copy the overlays over it in exact order as specified in genimage.cfg, assuming that the files from later overlay will overwrite the files in former.
BTW This is probably related to #181 which points out that genimage is dogmaticaly stuck on some "root path" concept, which often does not reflect reality of embedded development very well. Project structure tends to be more complex than just having one root that contains everything. I suggest not to force such concept and leave the directory structure up to users.
The text was updated successfully, but these errors were encountered:
Tools like mke2fs only accept one directory for root. So at some point, all those directories must be copied together. I think that's out of scope for genimage. But with #184 you could probably do it in a exec-pre command.
I think it would be really beneficial to allow filesystems to be overlayed.
For example, currently if you want to build ext4, you use something like this:
But what i actualy need for serious work is bit different. Eg. i have following directories
root
- containing complete userspace from debootstrapoverlay_generic
- containing some files that i want to replace in all devices, eg. custom/etc/ssh/sshd_config
overlay_alice
- containing device specific stuff, eg./etc/hostname
= aliceoverlay_bob
- containing device specific stuff, eg./etc/hostname
= bobThen i would want to do something like this:
So that i will only need to build one debootstrap chroot and then copy it to all of my ext4 images. without having to manage several copies of the chroot.
Then apply/copy the overlays over it in exact order as specified in genimage.cfg, assuming that the files from later overlay will overwrite the files in former.
BTW This is probably related to #181 which points out that genimage is dogmaticaly stuck on some "root path" concept, which often does not reflect reality of embedded development very well. Project structure tends to be more complex than just having one root that contains everything. I suggest not to force such concept and leave the directory structure up to users.
The text was updated successfully, but these errors were encountered: