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
...then I need to invoke genimage with a valid --rootpath. I'm not sure why though, because (I think) all the necessary files are specified, and could just be copied straight to tmppath as per other filesystems discussed in #181.
If I use empty = true (as a child key of root.img) then indeed I can skip supplying or creating rootpath. This suggests to me that vfat partitions populated from a list of files could also qualify for not needing a rootpath.
genimage: 16
OS: Ubuntu 23.10
The text was updated successfully, but these errors were encountered:
Right, in that specific case, the rootpath should not be needed. Unfortunately it's a bit more complex to fix.
If the --rootpath is specified or if the image has a explicit mountpoint or srcpath and any of that is missing, then an error must still occur.
And there are multiple places that must be changed to take that into account.
I encountered this while using genimage with the meson build system, which does not provide much control over output directories in the build directory. (I don't want to start an argument over that policy, I'm just giving context.) An extra challenge is the need for the root path to be copied into the temporary path (or is it the other way around?) and therefore not contain it.
This can be worked around by using a wrapper script, or maybe by "properly" integrating genimage with meson via a plugin or official support. So it's not a total incompatibility. I don't mind either way if you want to close this because you don't want to fix it, or leave it open to not lose track of it.
If I have this config:
...then I need to invoke
genimage
with a valid--rootpath
. I'm not sure why though, because (I think) all the necessary files are specified, and could just be copied straight totmppath
as per other filesystems discussed in #181.If I use
empty = true
(as a child key ofroot.img
) then indeed I can skip supplying or creatingrootpath
. This suggests to me thatvfat
partitions populated from a list of files could also qualify for not needing arootpath
.The text was updated successfully, but these errors were encountered: