-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkosi v15+: mkosi.extra/boot/ files missing in /boot, breaks incremental update_existing_rootfs() #88
Comments
I can reproduce as early as mkosi v15. This was likely caused by the v15 switch to systemd/mkosi@8bbbd836078a2 "Migrate disk image building to systemd-repart"
|
This comment was marked as resolved.
This comment was marked as resolved.
|
... or maybe not. Maybe that's not required after all... One burning question is: what is the
But Also: when invoked by Could this -F be another instance of trying to port to mkosi v15+ another Generally speaking, porting to mkosi v15+ is really hard without a clear picture of what: 1) code was supposed to do with mkosi v14- in the first place 2) what it was actually achieving with v14-. Other complications: Status with mkosi v14- and Fedora 40 (v15+ has significant differences)
The situation with modules is similar but even more varied because in addition to being embedded in |
Simply dropping the @stellarhopper , @weiny2 could you test that |
I did a lot more testing and dropping "-F System.map" is not good enough. It's just shooting the messenger. It's a "also guilty" messenger but still just a messenger. Dropping "-F System.map" fixes the build but hides a bigger missing Here's the situation with mkosi v15+ if we drop "-F System.map"
The above tested with both v15 and v23. I think it's better to fail with this "system.map" error message because it can lead people to this bug and issue until the real |
This does not fix pmem#88 at all but clears some of the confusion around it. Fixes: ``` $ file qbuild/mkosi.extra/boot/* qbuild/mkosi.extra/boot/System.map: broken symbolic link to ./qbuild/mkosi.extra/boot/System.map-6.12.0-dirty qbuild/mkosi.extra/boot/vmlinuz: broken symbolic link to ./qbuild/mkosi.extra/boot/vmlinuz-6.12.0-dirty ``` Fixes commit f9d7330 ("run_qemu: work around new systemd-based installkernel") which added these symbolic links. They never worked. Signed-off-by: Marc Herbert <[email protected]>
Hm, didn't mean to close this - I guess it auto-closed because of the mention in #98 |
Most likely yes, please upvote https://github.com/orgs/community/discussions/17308 (and duplicates...) |
So the key question is: does anyone or anything uses
Maybe If |
@marc-hb yeah I'm pretty sure this is true - /boot is just a holdover from grub days, and likely can be removed now. |
update_existing_rootfs()
currently relies on/boot/System.map-N.M
being located on the main partition. When it's not, the "incremental" build fails like this:The
-r img
workaround is correct but obviously much slower.Note there are multiple places where the ESP partition can be mounted: notably
/efi
or/boot
. Fedora+mkosi seems to always use/efi
by default?https://wiki.archlinux.org/title/EFI_system_partition#Typical_mount_points
cc:
The text was updated successfully, but these errors were encountered: