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)
Can you provide a patch?