getty: failed attempt at doing it from a shell

This commit is contained in:
Ciro Santilli
2018-06-13 15:07:55 +01:00
parent c821edf78a
commit ee33e4f028

View File

@@ -3935,6 +3935,22 @@ See also:
* https://github.com/mirror/busybox/blob/1_28_3/examples/inittab#L60
* http://web.archive.org/web/20180117124612/http://nairobi-embedded.org/qemu_serial_port_system_console.html
===== Start a getty from outside of init
TODO: https://unix.stackexchange.com/questions/196704/getty-start-from-command-line
If I try the exact same command that the `inittab` is doing from a regular shell:
....
/sbin/getty 0 tty1
....
it fails with:
....
getty: setsid: Operation not permitted
....
===== console kernel boot parameter
Take the command described at <<tty>> and try adding the following: