Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521772 - `genkernel --help' fails when /etc/genkernel.conf does not exist: /usr/bin/genkernel: line 37: /etc/genkernel.conf: No such file or directory
Summary: `genkernel --help' fails when /etc/genkernel.conf does not exist: /usr/bin/ge...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 19:21 UTC by Paige Thompson
Modified: 2015-08-20 15:35 UTC (History)
1 user (show)

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 Paige Thompson 2014-08-30 19:21:56 UTC
windowlicker etc # genkernel --help
/usr/bin/genkernel: line 37: /etc/genkernel.conf: No such file or directory
Could not read /etc/genkernel.conf
windowlicker etc # 

windowlicker etc # ls -lah genkernel.*
-rw-r--r-- 1 root root 8.0K Aug 30 12:09 genkernel.debug.conf
-rw-r--r-- 1 root root 7.9K Aug 30 12:10 genkernel.recovery.conf
-rw-r--r-- 1 root root 1.6K Aug 30 13:27 genkernel.vanilla.conf
windowlicker etc # 



I am uncompromising.There will be absolutely no default genkernel.conf on my system just so that I can --help.


windowlicker etc # genkernel --version
/usr/bin/genkernel: line 37: /etc/genkernel.conf: No such file or directory
Could not read /etc/genkernel.conf
windowlicker etc # emerge -va genkernel

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-kernel/genkernel-3.4.49.2  USE="crypt cryptsetup (-ibm) (-selinux)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 15:35:02 UTC
genkernel *requires* a config.  if you insist on not putting your config in the default location, you must pass --config=/etc/genkernel.vanilla.conf

most of genkernel is not actually in the single genkernel file and so for even --help to work, we need to know the location of the rest of the genkernel files.