system: hurd: Add "/bin/sh" symlink.

This allows login.c to succeed for root.

* gnu/system/hurd.scm (cross-hurd-image): Link /bin/sh to full the full bash.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-04-05 17:16:30 +02:00 committed by Ludovic Courtès
parent 6598c6149b
commit fe1f9646b4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -21,6 +21,7 @@ (define-module (gnu system hurd)
#:use-module (guix utils)
#:use-module (gnu bootloader grub)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages cross-base)
#:use-module (gnu packages hurd)
#:use-module (gnu system vm)
@ -44,7 +45,7 @@ (define hurd-os
(directory-union "gnu+hurd"
(cons (with-parameters ((%current-system "i686-linux"))
gnumach)
(for-hurd hurd coreutils grep sed)))))
(for-hurd hurd bash coreutils grep sed)))))
(define grub.cfg
(let ((hurd (with-parameters ((%current-target-system "i586-pc-gnu"))
@ -122,7 +123,11 @@ (define hurd-directives
("/etc/ttys" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
hurd)
"/etc/ttys"))))
"/etc/ttys"))
("/bin/sh" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
bash)
"/bin/sh"))))
(qemu-image #:file-system-type "ext2"
#:file-system-options '("-o" "hurd")