Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455796 - Detect version of building kernel from CALLBACK
Summary: Detect version of building kernel from CALLBACK
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 05:53 UTC by Isakov Alexandr
Modified: 2013-02-06 05:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isakov Alexandr 2013-02-06 05:53:05 UTC
I have a complex configuration of boot process so I need to manually do some things when installing new or rebuilding kernel. I wrote script and add it as CALLBACK to genkernel. The trouble is that genkernel didn't tell my script which kernel it's currently build. As a temporary workaround I use `readlink /usr/src/linux`. I think it would be better if genkernel would give some additional information to the callback with the environment variables: kernel version, installed kernel path, initramfs path.

Reproducible: Always

Steps to Reproduce:
echo $KV
echo $KERNEL_PATH
echo $INITRAMFS_PATH
Actual Results:  





Expected Results:  
3.7.6-geek
/boot/kernel-genkernel-x86_64-3.7.6-geek
/boot/initramfs-genkernel-x86_64-3.7.6-geek