Red Hat Bugzilla – Bug 136060
console=tty0 implicitly appended to x86_64 command line breaks init=/bin/bash
Last modified: 2015-01-04 17:10:46 EST
Description of problem:
arch/x86_64/kernel/head64.c appends ` console=tty0' to the kernel
command line if there isn't a `console=' string in there. If your
grub command line doesn't specify console=tty0, and you just append
`init=/bin/bash' to the command line, you won't get a shell prompt,
because console=tty is going to be passed to bash.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.reboot and append init=/bin/bash to the command line
1. shows the command line ends with console=tty0, that isn't specified
in the grub boot command line. 2. fails because bash doesn't like the
argument it is passed.
The extraneous argument should probably not be shown, and it would be
nice if 2. worked regardless of the presence of console= in the
default boot command line.
Adding `console=tty0 init=/bin/bash' works.
this got fixed quite a while back iirc.