Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528168 - eselect kernel show print version + suffix only (like uname -r)
Summary: eselect kernel show print version + suffix only (like uname -r)
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo eselect Team
Depends on:
Reported: 2014-11-03 19:43 UTC by Manuel Rüger (RETIRED)
Modified: 2016-06-01 19:29 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2014-11-03 19:43:04 UTC
It would be great if a --kernel-release (to be compliant with uname -r) option would return only the currently selected version + suffix.

eselect kernel show | grep linux | sed -e 's/.*linux-//'

Why is this option needed?

Building the initramfs for dracut needs the recent kernel version. It would be nice if this is possible:
dracut $(eselect show kernel --kernel-release) 

or even shorter:
dracut $(eselect show kernel -r)
Comment 1 Ulrich Müller gentoo-dev 2016-06-01 19:29:21 UTC
Can you provide a patch?