Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558188 - [patch] sys-kernel/genkernel: in --config=/etc/genkernel1.conf search, if parameters >9 - there are /etc/genkernel1.conf0
Summary: [patch] sys-kernel/genkernel: in --config=/etc/genkernel1.conf search, if par...
Status: RESOLVED FIXED
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: 2015-08-19 18:21 UTC by Denis Kaganovich
Modified: 2019-07-15 10:03 UTC (History)
0 users

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


Attachments
genkernel-config-name.patch (genkernel-config-name.patch,431 bytes, patch)
2015-08-19 18:24 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kaganovich 2015-08-19 18:21:15 UTC
In line 37: eval arg="\$$i"
- I have --config=/etc/kernels/genkernel.conf as $2, and $#=20, so on other 20 param: eval arg="\$20"
- this is equal to "${2}0", so I got "Could not read /etc/kernels/genkernel.conf0"

Must be at least: eval arg="\${$i}"
Or change whole loop to 'for arg in "${@}"; do' without eval.

Second solution attaching...

Reproducible: Always
Comment 1 Denis Kaganovich 2015-08-19 18:24:55 UTC
Created attachment 409492 [details, diff]
genkernel-config-name.patch

Fix --config= with >9 params at best way
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:03:30 UTC
This was fixed long time ago via https://github.com/gentoo/genkernel/commit/f5f28c6c6fa09a746d317c0956659eb6c6454516