mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
system: hurd: Add /etc/{passwd,shadow}.
* gnu/system/hurd.scm: Generate hard-coded /etc/{passwd,shadow}, allows running chown in MAKEDEV and loggin in.
This commit is contained in:
parent
cd4faab563
commit
6598c6149b
1 changed files with 17 additions and 1 deletions
|
@ -80,6 +80,18 @@ (define fstab
|
|||
/dev/hd0s1 / ext2 defaults
|
||||
"))
|
||||
|
||||
(define passwd
|
||||
(plain-file "passwd"
|
||||
"root:x:0:0:root:/root:/bin/sh
|
||||
"
|
||||
))
|
||||
|
||||
(define shadow
|
||||
(plain-file "shadow"
|
||||
"root::0:0:0:0:::
|
||||
"
|
||||
))
|
||||
|
||||
(define hurd-directives
|
||||
`((directory "/servers")
|
||||
,@(map (lambda (server)
|
||||
|
@ -104,6 +116,8 @@ (define hurd-directives
|
|||
hurd)
|
||||
"/hurd"))
|
||||
("/etc/fstab" -> ,fstab)
|
||||
("/etc/passwd" -> ,passwd)
|
||||
("/etc/shadow" -> ,shadow)
|
||||
;; XXX can we instead, harmlessly set _PATH_TTYS (from glibc) in runttys.c?
|
||||
("/etc/ttys" -> ,(file-append (with-parameters ((%current-target-system
|
||||
"i586-pc-gnu"))
|
||||
|
@ -115,7 +129,9 @@ (define hurd-directives
|
|||
#:device-nodes 'hurd
|
||||
#:inputs `(("system" ,hurd-os)
|
||||
("grub.cfg" ,grub.cfg)
|
||||
("fstab" , fstab))
|
||||
("fstab" ,fstab)
|
||||
("passwd" ,passwd)
|
||||
("shadow" ,shadow))
|
||||
#:copy-inputs? #t
|
||||
#:os hurd-os
|
||||
#:bootcfg-drv grub.cfg
|
||||
|
|
Loading…
Reference in a new issue