FS#16477 - [filesystem,initscripts] Add hvc0 in /etc/securetty and in /etc/inittab
Attached to Project:
Arch Linux
Opened by Damjan Georgievski (damjan) - Monday, 05 October 2009, 22:14 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 07 November 2009, 19:56 GMT
Opened by Damjan Georgievski (damjan) - Monday, 05 October 2009, 22:14 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 07 November 2009, 19:56 GMT
|
Details
/dev/hvc0 is the paravirtualized virtual-console provided by
KVM, lguest and I think Xen too. It's enabled by default in
the Arch kernels (CONFIG_VIRTIO_CONSOLE=y).
I suggest that it should be added to /etc/securetty since a lot of people don't know that the device must be listed there so that they can login as root. I would also add it to /etc/inittab by default, but that would SPAM the users of non-virtualized Arch - maybe just add it commented out by default? |
This task depends upon
Closed by Eric Belanger (Snowman)
Saturday, 07 November 2009, 19:56 GMT
Reason for closing: Implemented
Saturday, 07 November 2009, 19:56 GMT
Reason for closing: Implemented
What should the inittab line be? Any special considerations, or just copy a tty line?
index c64bdbd..d4adad6 100644
--- a/inittab
+++ b/inittab
@@ -31,6 +31,9 @@ c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
+# Hypervisor Virtual Console for Xen and KVM
+#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux
+
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager