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
I'd like to have a mkosi.init script to run at the very beginning (before config parsing/validation) in order to create/initialize the contents of things like PackageDirectories and ExtraSearchPaths. The specific usecase I have in mind is building systemd as part of the mkosi build, and including the systemd packages into the image built by mkosi. My attempt at that involved cloning systemd in the mkosi directory, and then adding a mkosi.sync with mkosi --directory=systemd --release=41 -t none to build it. However, this runs too late, and mkosi ends up failing because the build directory doesn't exist yet.
Obviously, a workaround for this is manually running mkdir systemd/build/mkosi.builddir/fedora~41~x86-64 before attempting to build, but that's an additional manual step I'd like to avoid if possible.
mkosi commit the issue has been seen with
main
Used host distribution
Fedora Linux 41
Used target distribution
Fedora Linux 41
Linux kernel version used
No response
CPU architectures issue was seen on
None
Unexpected behaviour you saw
I'd like to have a
mkosi.init
script to run at the very beginning (before config parsing/validation) in order to create/initialize the contents of things likePackageDirectories
andExtraSearchPaths
. The specific usecase I have in mind is building systemd as part of the mkosi build, and including the systemd packages into the image built by mkosi. My attempt at that involved cloning systemd in the mkosi directory, and then adding amkosi.sync
withmkosi --directory=systemd --release=41 -t none
to build it. However, this runs too late, and mkosi ends up failing because the build directory doesn't exist yet.Used mkosi config
mkosi output
The text was updated successfully, but these errors were encountered: