Replies: 1 comment 4 replies
-
@septatrix For the initrd you can now just add a subdirectory
We're already using this in systemd and I'm considering deprecating all the We don't actually want to make the default tools tree more configurable. We currently rely on the opposite since we don't rebuild it anymore on every build if we have a cached image of it available. This only works if all we do is install packages in it (with maybe a prepare script). I'm not opposed to allowing subimage configuration like you proposed, although it would introduce even more complexity into the config parsing so there'd have to be some good use cases for it. |
Beta Was this translation helpful? Give feedback.
-
I was looking at the changes as a result of #2847 and think is still potential to make configuration easier and more powerful at the same time.
It would be great to be able to directly configure some property of the subimage without modifying the main image. I was thinking something like
--<image-name>.format=disk
. This could unified together with the existing initrd/toolstree options without having to introduce longer and longer prefixes for them. E.g. instead of--tools-tree-package-manager-tree=
use--tools-tree.package-manager-tree=
and--initrd.package=
can be used instead of--initrd-package=
. This would make it easier to configure those images. E.g.--initrd.remove-packages=
could be used instead of needing to create a config and usingInitrdInclude=
I was also thinking about having something similar in the config files itself. Especially the configuration of the initrd but also the tools tree is somewhat limited by the available options (or at least made more cumbersome due to needing
InitrdInclude=
). A potential solution would be to extend the INI syntax to allow TOML-like section headers with a dot, e.g.[Initrd.Content]
. This would allow easy configuration if the initrd without requiringInitrdInclude=
or being limited by the amount of availableInitrd*=
passthrough optionsBeta Was this translation helpful? Give feedback.
All reactions