File initrd.scripts function test_success contains the line: bad_msg 'Failed to $1; failing back to the shell...' with single quotes. If the test fails, the literal "$1" is printed, not the contents of argument one. The sources also implies that this should be $error_string instead of $1?
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=24d3f6b4b3afe1125fa9296b50b55f75870c645e commit 24d3f6b4b3afe1125fa9296b50b55f75870c645e Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-06-23 19:08:17 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-06-23 19:08:17 +0000 defaults/initrd.scripts: test_success(): Fix quoting Bug: https://bugs.gentoo.org/494710 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> defaults/initrd.scripts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Will be in next genkernel release, thank you for the report :)
Released with >=genkernel-4.0.10.