Open Zlika opened 11 months ago
Ah, I see the issue. For vfat images there are two ways to provide content:
The automatic size calculation only takes the rootpath into account.
Ok, thanks for your quick answer. Is it a possible future improvement to make it work on this use case?
Certainly. But I'm not sure when I'll find the time to do that. The fastest way would be to implement it yourself and open a pull request. Basically you need to modify vfat_setup()
and there
if (image->size_is_percent) {
for all extra files
image->size += file size
}
Hello, I'm using genimage 15 (through buildroot 2022.02.8) and specifying an image size in % does not seem to work. My configuration file is:
This config file works, but if I replace the "size = 20M" with a percent value (e.g. "size=120%" or even "size=200%") I always have the following error message:
mkdosfs: Attempting to create a too small or too large filesystem.
Here is the full log with --loglevel=3: