eclean-kernel does not autogenerate new GRUB2 grub.cfg config file after kernel removal. Reproducible: Always Steps to Reproduce: 1. (3 or more kernel image/initramfs versions in /boot) 2. grub-mkconfig -o /boot/grub/grub.cfg 3. eclean-kernel -d -n 2 Actual Results: grub.cfg is not autogenerated after kernel image/initramfs files have been removed. Expected Results: grub.cfg should be autogenerated after image/initramfs files removal. eclean-kernel-0.4.3 is affected. /usr/lib/python3.7/site-packages/ecleankernel/bootloader/grub2.py is looking for '# It is automatically generated by grub2-mkconfig' in grub.cfg to determine if it is autogenerated, but lastest version of GRUB2 config autogeneration utility is named grub-mkconfig and places '# It is automatically generated by grub-mkconfig' in grub.cfg.
Could you --sync and try -9999? I've just made the check more flexible.
Manually downloaded from git grub2.py detects auto-generated grub.cfg correctly and executes grub-mkconfig and then outputs the following message: eclean-kernel has met the following issue: FileNotFoundError(2, "No such file or directory: 'grub2-mkconfig'")
The fallback logic was wrong indeed. Please try now.
Gentle ping. I'd like to make a release, so I'd use a confirmation if I actually fixed your problem.
(In reply to Michał Górny from comment #4) > Gentle ping. I'd like to make a release, so I'd use a confirmation if I > actually fixed your problem. Now it's working properly without any error/warning messages.
I was just about to report this myself and I did indeed notice that eclean'ed kernels aren't removed from the grub2 boot menu, suspect that it's not rerunning grub-mkconfig the way genkernel does.
Re-keyworded to allow 2.99.1, it still doesn't appear to be regenerating the boot menu as the grub.cfg still references a removed kernel. No errors this time complaining about a missing grub2-mkconfig
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88f6ce2f36cc65a2934a5c6575fef77dc463227c commit 88f6ce2f36cc65a2934a5c6575fef77dc463227c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-09-22 07:47:21 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-09-22 07:47:23 +0000 app-admin/eclean-kernel: Bump to 2.99.2 Closes: https://bugs.gentoo.org/721834 Signed-off-by: Michał Górny <mgorny@gentoo.org> app-admin/eclean-kernel/Manifest | 1 + .../eclean-kernel/eclean-kernel-2.99.2.ebuild | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+)