services: mingetty: Use '--nohangup'.

See the discussion at
<https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00049.html>.

* gnu/services/base.scm (mingetty-shepherd-service): Pass "--nohangup"
to mingetty.
This commit is contained in:
Ludovic Courtès 2018-07-05 00:11:45 +02:00
parent 9fd877247d
commit a043b5b81a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1113,7 +1113,14 @@ (define mingetty-shepherd-service
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list #$(file-append mingetty "/sbin/mingetty") (list #$(file-append mingetty "/sbin/mingetty")
"--noclear" #$tty "--noclear"
;; Avoiding 'vhangup' allows us to avoid 'setfont'
;; errors down the path where various ioctls get
;; EIO--see 'hung_up_tty_ioctl' in driver/tty/tty_io.c
;; in Linux.
"--nohangup" #$tty
#$@(if auto-login #$@(if auto-login
#~("--autologin" #$auto-login) #~("--autologin" #$auto-login)
#~()) #~())