Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 528168

Summary: eselect kernel show print version + suffix only (like uname -r)
Product: Gentoo Hosted Projects Reporter: Manuel Rüger (RETIRED) <mrueg>
Component: eselectAssignee: Gentoo eselect Team <eselect>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

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?