mkosi icon indicating copy to clipboard operation
mkosi copied to clipboard

Adopt /etc/kernel/entry-token once all distros have sufficiently new bootctl/kernel-install

Open lucasdemarchi opened this issue 5 years ago • 2 comments

I have the following problem when generating bootable Fedora images:

  • A directory /efi/<fake-machine-id> is leftover in the image
  • /etc/machine-id is wiped so a new one is created on first boot
  • kernel-install fails to install new kernels when the dir /efi/<machine-id> doesn't exist

I use kernel-install in the final image to install additional kernels for testing. I don't know exactly where to fix this current behavior. My current approach is to always remove the fake-machine-id dir and add a new one, but there should be a better way.

Related question: could we have a toggle to avoid using a unified kernel? For my use cases having a bootloader conf entry with separate initrd and kernel image would be better.

lucasdemarchi avatar Oct 30 '19 09:10 lucasdemarchi

Might be interested in this PR: https://github.com/systemd/systemd/pull/16687

DaanDeMeyer avatar Aug 06 '20 23:08 DaanDeMeyer

We should be able to fix this with the new /etc/kernel/entry-token support that was added to bootctl and kernel-install. It might just take a while until we have sufficiently new systemd in all distros to be able to depend on it.

We already have an option to not use unified kernel images.

DaanDeMeyer avatar Jun 16 '22 14:06 DaanDeMeyer

We don't create an entry-token directory at all anymore, so let's close this

DaanDeMeyer avatar Feb 14 '23 14:02 DaanDeMeyer