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
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(-)
Fix released with >=sys-kernel/genkernel-4.1.0_rc1!