Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461910 - sys-kernel/genkernel-3.4.45 linuxrc does not support /bin/bash as real_init
Summary: sys-kernel/genkernel-3.4.45 linuxrc does not support /bin/bash as real_init
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: PATCH
Depends on:
Blocks:
 
Reported: 2013-03-16 09:23 UTC by Łukasz Stelmach
Modified: 2015-08-20 16:06 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 Łukasz Stelmach 2013-03-16 09:23:23 UTC
The linuxrc script from genkernel does not support launching /bin/bash as real init (after switching root). This is due to the double quotes around INIT_OPTS

exec /sbin/switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}"


With INIT_OPTS empty bash gets one empty string as an argument and exits with the following error message

/bin/bash: : No such file or directory

which in this case causes kernel panic.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 16:06:43 UTC
fixed with https://bugs.gentoo.org/show_bug.cgi?id=444574