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
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Damjan Georgievski (damjan) - Monday, 05 October 2009, 22:16 GMT
This should've been a Feature Request about the filesystem package in the Core repository
Comment by Aaron Griffin (phrakture) - Tuesday, 06 October 2009, 15:46 GMT
Added to securetty in svn trunk.

What should the inittab line be? Any special considerations, or just copy a tty line?
Comment by Aaron Griffin (phrakture) - Tuesday, 06 October 2009, 15:50 GMT
diff --git a/inittab b/inittab
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

Loading...