services: etc: Add '/etc/ttys' symlink for the Hurd.
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Tue, 9 Jun 2020 15:44:52 +0000 (17:44 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 9 Jun 2020 15:59:56 +0000 (17:59 +0200)
Reported by Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com> via IRC.

* gnu/system.scm (operating-system-etc-service): For the Hurd, add '/etc/ttys'
symlink.  This fixes terminal behavior in the console by setting TERM=hurd.

gnu/system.scm

index 081e0f2..d51691f 100644 (file)
@@ -847,7 +847,8 @@ fi\n")))
        ,@(if sudoers `(("sudoers" ,sudoers)) '())
        ,@(if hurd
              `(("login" ,(file-append hurd "/etc/login"))
-               ("motd"  ,(file-append hurd "/etc/motd")))
+               ("motd"  ,(file-append hurd "/etc/motd"))
+               ("ttys"  ,(file-append hurd "/etc/ttys")))
              '())))))
 
 (define %root-account