When install grub2 with USE=-mutilslot, it will install grub-mkconfig instead of grub2-mkconfig. Then run eclean-kenel will fail like below: # eclean-kernel -n3 * Removing kernel genkernel-x86_64-4.8.10-gentoo (not referenced by bootloader (grub2)) - /boot/kernel-genkernel-x86_64-4.8.10-gentoo - /boot/System.map-genkernel-x86_64-4.8.10-gentoo - /boot/initramfs-genkernel-x86_64-4.8.10-gentoo - /lib64/modules/4.8.10-gentoo - /usr/src/linux-4.8.10-gentoo Removed 1 kernels eclean-kernel has met the following issue: [Errno 2] No such file or directory: 'grub2-mkconfig' If you believe that the mentioned issue is a bug, please report it to https://bitbucket.org/mgorny/eclean-kernel/issues. If possible, please attach the output of 'eclean-kernel --list-kernels' and your regular eclean-kernel call with additional '--debug' argument.
I wonder if we could reliably detect this by GRUB config filename. Or maybe just dumbly try 'grub2-mkconfig', then 'grub-mkconfig'.
Created attachment 553814 [details, diff] 0001-grub2-Support-grub-mkconfig-executable.patch Could someone please test the attached patch?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41293544c28944ba72a7009843717796cef2981d commit 41293544c28944ba72a7009843717796cef2981d Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-11-04 08:30:33 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-11-04 08:33:43 +0000 app-admin/eclean-kernel: Bump to 0.4.3 (legacy branch) Closes: https://bugs.gentoo.org/603418 Closes: https://bugs.gentoo.org/646668 Signed-off-by: Michał Górny <mgorny@gentoo.org> app-admin/eclean-kernel/Manifest | 1 + app-admin/eclean-kernel/eclean-kernel-0.4.3.ebuild | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+)