Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603418 - app-admin/eclean-kernel-0.4.2 not handle grub[-multislot] (error running grub2-mkconfig)
Summary: app-admin/eclean-kernel-0.4.2 not handle grub[-multislot] (error running gru...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2016-12-22 03:16 UTC by Joe Chen
Modified: 2018-11-04 08:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-grub2-Support-grub-mkconfig-executable.patch (0001-grub2-Support-grub-mkconfig-executable.patch,1.18 KB, patch)
2018-11-01 14:23 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Chen 2016-12-22 03:16:14 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-01 08:31:43 UTC
I wonder if we could reliably detect this by GRUB config filename.  Or maybe just dumbly try 'grub2-mkconfig', then 'grub-mkconfig'.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-01 14:23:46 UTC
Created attachment 553814 [details, diff]
0001-grub2-Support-grub-mkconfig-executable.patch

Could someone please test the attached patch?
Comment 3 Larry the Git Cow gentoo-dev 2018-11-04 08:33:55 UTC
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(+)