No kernel image is built
Closed this issue · 1 comments
christian-heusel commented
I think this might be a user error, but mkosi-kernel
has stopped working for me:
$ mkosi -f qemu
‣ Removing output files of default image…
‣ Building default image
‣ Copying cached trees
‣ Running build script /home/chris/Documents/shared_projects/mkosi-kernel/modules/kernel/mkosi.build.chroot…
‣ Copying in extra file trees…
‣ Running postinstall script /home/chris/Documents/shared_projects/mkosi-kernel/mkosi.postinst…
‣ Setting up autologin…
‣ Generating system users
‣ Generating volatile files
‣ Applying presets…
[...]
‣ Generating hardware database
‣ /home/chris/Documents/shared_projects/mkosi-kernel/mkosi.output/image size is 1.7G.
‣ Fixing ownership of package manager cache directory
‣ Kernel or UKI not found at /home/chris/Documents/shared_projects/mkosi-kernel/mkosi.output/image.vmlinuz, please install a kernel in the image or provide a -kernel argument to mkosi qemu
This is even though I have applied the settings advertised in README.md
:
diff --git a/mkosi.conf b/mkosi.conf
index 099aea7..4a3e0f1 100644
--- a/mkosi.conf
+++ b/mkosi.conf
@@ -1,5 +1,6 @@
[Config]
MinimumVersion=23~devel
+@Include=modules/kernel
[Output]
OutputDirectory=mkosi.output
@@ -14,6 +15,7 @@ WithDocs=yes
WithNetwork=yes
BuildSources=.
@SELinuxRelabel=no
+BuildSources=/home/chris/Documents/shared_projects/mkosi-kernel/:kernel
Packages=
attr
Any idea what could be going wrong?
christian-heusel commented
I think this might be a user error
Yeah turns out this was indeed the case 😆 Got it fixed by providing an actual kernel source tree with BuildSources
🥹