Skip to content
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

Duplicate rescue kernels #1244

Open
supakeen opened this issue Feb 23, 2025 · 1 comment
Open

Duplicate rescue kernels #1244

supakeen opened this issue Feb 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@supakeen
Copy link
Member

Due to the way we handle /etc/machine-id in our images any image that has dracut-config-rescue will generate rescue kernel by the name of vmlinuz-0-rescue-ffffffff[repeat] (and initramfs) in XBOOTLDR.

When the system boots a new machine id is provisioned, the next time kernel-install runs and triggers dracut a new rescue kernel will be generated with vmlinuz-0-rescue-anactualidhere (and initramfs).

Since these together fill up about 150-200 MiB and 300-400 MiB when duplicated this can and sometimes does cause trouble for systems that try to keep 3 kernels and have a 1 GiB /boot partition.

@supakeen supakeen added the bug Something isn't working label Feb 23, 2025
supakeen added a commit to supakeen/images that referenced this issue Feb 23, 2025
After some discussion [1] Fedora Minimal would like to disable the
generation of rescue kernels. This is because historically they weren't
included in images (before switching to `image-builder`) and also
because the current `/etc/machine-id` implementation of `image-builder`
leads to duplicate rescue kernels being generated [2].

[1]: fedora-minimal/distribution-minimal#10
[2]: osbuild#1244

Signed-off-by: Simon de Vlieger <[email protected]>
github-merge-queue bot pushed a commit that referenced this issue Feb 24, 2025
After some discussion [1] Fedora Minimal would like to disable the
generation of rescue kernels. This is because historically they weren't
included in images (before switching to `image-builder`) and also
because the current `/etc/machine-id` implementation of `image-builder`
leads to duplicate rescue kernels being generated [2].

[1]: fedora-minimal/distribution-minimal#10
[2]: #1244

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen
Copy link
Member Author

We have turned this off for Fedora Minimal now in #1245. However the issue remains for other images that if dracut-config-rescue is in their package set the above applies.

Looking at other build tools shows that they generally exclude the package on anything that's a disk image (installers tend to handle this case).

It's probably worthwhile to actually chase this rabbit down into Fedora by dropping the machine id from the BLS config(s) and kernel name(s). This can be done by fiddling with entry-token so let's test that and then maybe we can suggest it to distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant