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

Bug 483146

Summary: --linuxrc command line option does not work with relative paths
Product: Gentoo Hosted Projects Reporter: Marin Hannache <gentoo>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marin Hannache 2013-08-31 12:51:25 UTC
When building an initramfs with a custom linuxrc, if the user is using a relative path to his linuxrc file, genkernel ignore it without warning and uses his own linuxrc file, leading to an issue difficult to figure out for the user.

Reproducible: Always

Steps to Reproduce:
1. genkernel --linuxrc=relative/path initramfs
Actual Results:  
The default linuxrc file is used without warning

Expected Results:  
The specified linuxrc file should be used or a warning should be issued
Comment 1 Larry the Git Cow gentoo-dev 2020-08-02 22:42:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9fdb3acb257e7103a89e8f47fe8cb23e614efe84

commit 9fdb3acb257e7103a89e8f47fe8cb23e614efe84
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-08-02 10:44:56 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-08-02 22:40:14 +0000

    Make use of expand_file() for --linuxrc option
    
    Bug: https://bugs.gentoo.org/483146
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 gen_determineargs.sh | 13 +++++++++++++
 gen_initramfs.sh     | 13 +++++--------
 genkernel.conf       |  3 +++
 3 files changed, 21 insertions(+), 8 deletions(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-04 09:44:57 UTC
Fix released with >=sys-kernel/genkernel-4.1.0_rc1!