-
Notifications
You must be signed in to change notification settings - Fork 57
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
Comments
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]>
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]>
We have turned this off for Fedora Minimal now in #1245. However the issue remains for other images that if 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 |
Due to the way we handle
/etc/machine-id
in our images any image that hasdracut-config-rescue
will generate rescue kernel by the name ofvmlinuz-0-rescue-ffffffff[repeat]
(andinitramfs
) inXBOOTLDR
.When the system boots a new machine id is provisioned, the next time
kernel-install
runs and triggersdracut
a new rescue kernel will be generated withvmlinuz-0-rescue-anactualidhere
(andinitramfs
).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.The text was updated successfully, but these errors were encountered: