-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Too many initramfs files are removed #8
Comments
I also tried with 2.99.1. I have the same issue.
|
Ok even if I tell my scripts to save previous initramfs with But it seems that grub-mkconfig do not recognise the right initramfs for the right kernel!
If a rename back the old initramfs file to
Everything is fine. So the |
Do I understand correctly that it's removing a file even though it doesn't say it's removing it? Could you verify that it isn't |
I'm having the very same issue here |
I can confirm it's kernel-install removing the other files indeed 🤦♂️ I'll run with |
I can confirm that running with |
Do you have dracut installed? I think this removal may be happening due to In any case, this is going to be hard because there are so many different /boot layouts… |
Same here, my initramfs images are deleted despite not being listed as being removed by I'm using However, using % eclean-kernel --version
2.99.7 % equery u app-admin/eclean-kernel
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for app-admin/eclean-kernel-2.99.7:
U I
- - lz4 : Enable support for lz4 compression (as implemented in app-arch/lz4)
- - lzo : Enable support for lzo compression
- - python_targets_python3_10 : Build with Python 3.10
- - python_targets_python3_11 : Build with Python 3.11
+ + python_targets_python3_12 : Build with Python 3.12
- - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled
independently)
- - zstd : Enable support for ZSTD compression % ls /boot
EFI
grub
config-6.1.90-gentoo-custom
config-6.1.90-gentoo-custom.old
config-6.6.30-gentoo-custom
config-6.6.30-gentoo-custom.old
initramfs-6.1.90-gentoo-custom.img
initramfs-6.6.30-gentoo-custom.img
intel-uc.img
System.map-6.1.90-gentoo-custom
System.map-6.1.90-gentoo-custom.old
System.map-6.6.30-gentoo-custom
System.map-6.6.30-gentoo-custom.old
vmlinuz-6.1.90-gentoo-custom
vmlinuz-6.1.90-gentoo-custom.old
vmlinuz-6.6.30-gentoo-custom
vmlinuz-6.6.30-gentoo-custom.old % sudo eclean-kernel -A -n 1
Preserving currently running kernel (6.1.90-gentoo-custom)
Legend:
[-] file being removed
[x] file does not exist (anymore)
[+] file being kept (used by other kernels)
Remove other 6.6.30-gentoo-custom.old (not referenced by bootloader (grub2))? [Yes/No]yes
Remove other 6.1.90-gentoo-custom.old (not referenced by bootloader (grub2))? [Yes/No]yes
* Removing kernel other 6.6.30-gentoo-custom.old (not referenced by bootloader (grub2))
[-] /boot/vmlinuz-6.6.30-gentoo-custom.old
[+] /usr/src/linux-6.6.30-gentoo
[+] /lib/modules/6.6.30-gentoo-custom
[-] /boot/System.map-6.6.30-gentoo-custom.old
[-] /boot/config-6.6.30-gentoo-custom.old
* Removing kernel other 6.1.90-gentoo-custom.old (not referenced by bootloader (grub2))
[-] /boot/vmlinuz-6.1.90-gentoo-custom.old
[+] /usr/src/linux-6.1.90-gentoo
[+] /lib/modules/6.1.90-gentoo-custom
[-] /boot/System.map-6.1.90-gentoo-custom.old
[-] /boot/config-6.1.90-gentoo-custom.old
Removed 2 kernels
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.30-gentoo-custom
Found initrd image: /boot/intel-uc.img
Found linux image: /boot/vmlinuz-6.1.90-gentoo-custom
Found initrd image: /boot/intel-uc.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done % ls /boot
EFI
grub
config-6.1.90-gentoo-custom
config-6.6.30-gentoo-custom
intel-uc.img
System.map-6.1.90-gentoo-custom
System.map-6.6.30-gentoo-custom
vmlinuz-6.1.90-gentoo-custom
vmlinuz-6.6.30-gentoo-custom % sudo eclean-kernel -A -n 1 --no-kernel-install
Preserving currently running kernel (6.1.90-gentoo-custom)
Legend:
[-] file being removed
[x] file does not exist (anymore)
[+] file being kept (used by other kernels)
Remove other 6.6.30-gentoo-custom.old (not referenced by bootloader (grub2))? [Yes/No]yes
Remove other 6.1.90-gentoo-custom.old (not referenced by bootloader (grub2))? [Yes/No]yes
* Removing kernel other 6.6.30-gentoo-custom.old (not referenced by bootloader (grub2))
[-] /boot/vmlinuz-6.6.30-gentoo-custom.old
[+] /usr/src/linux-6.6.30-gentoo
[+] /lib/modules/6.6.30-gentoo-custom
[-] /boot/System.map-6.6.30-gentoo-custom.old
[-] /boot/config-6.6.30-gentoo-custom.old
* Removing kernel other 6.1.90-gentoo-custom.old (not referenced by bootloader (grub2))
[-] /boot/vmlinuz-6.1.90-gentoo-custom.old
[+] /usr/src/linux-6.1.90-gentoo
[+] /lib/modules/6.1.90-gentoo-custom
[-] /boot/System.map-6.1.90-gentoo-custom.old
[-] /boot/config-6.1.90-gentoo-custom.old
Removed 2 kernels
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.30-gentoo-custom
Found initrd image: /boot/intel-uc.img /boot/initramfs-6.6.30-gentoo-custom.img
Found linux image: /boot/vmlinuz-6.1.90-gentoo-custom
Found initrd image: /boot/intel-uc.img /boot/initramfs-6.1.90-gentoo-custom.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done % ls /boot
EFI
grub
config-6.1.90-gentoo-custom
config-6.6.30-gentoo-custom
initramfs-6.1.90-gentoo-custom.img
initramfs-6.6.30-gentoo-custom.img
intel-uc.img
System.map-6.1.90-gentoo-custom
System.map-6.6.30-gentoo-custom
vmlinuz-6.1.90-gentoo-custom
vmlinuz-6.6.30-gentoo-custom Edit: also tried |
I have the following inside my /boot.
If I perform the following command I can see that only the
.old
kernel and related files will be removed.In order to be sure, I run the following command.
If I run the following command, it seems to perform what it is expected.
But if I double check, actually, eclean-kernel also removed the
/boot/initramfs-5.8.1-gentoo-x86_64.img
file. I didn't asked for that!It seems that initramfs management is buggy. 😢
The text was updated successfully, but these errors were encountered: