mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
system: hurd: Create /etc/{hostname,motd,login} and /root.
* gnu/system/hurd.scm (cross-hurd-image): Add /etc/{hostname,motd,login} and /root.
This commit is contained in:
parent
fe1f9646b4
commit
5fbf4f85e1
1 changed files with 17 additions and 2 deletions
|
@ -108,17 +108,32 @@ (define hurd-directives
|
|||
("/servers/socket/local" -> "1")
|
||||
("/servers/socket/inet" -> "2")
|
||||
("/servers/socket/inet6" -> "16")
|
||||
(file "/etc/resolv.conf"
|
||||
"nameserver 10.0.2.3\n")
|
||||
(directory "/boot")
|
||||
("/boot/grub.cfg" -> ,grub.cfg) ;XXX: not strictly needed
|
||||
("/hurd" -> ,(file-append (with-parameters ((%current-target-system
|
||||
"i586-pc-gnu"))
|
||||
hurd)
|
||||
"/hurd"))
|
||||
|
||||
;; TODO: Create those during activation, eventually.
|
||||
(directory "/root")
|
||||
("/etc/fstab" -> ,fstab)
|
||||
("/etc/passwd" -> ,passwd)
|
||||
("/etc/shadow" -> ,shadow)
|
||||
(file "/etc/hostname" "guixygnu")
|
||||
(file "/etc/resolv.conf"
|
||||
"nameserver 10.0.2.3\n")
|
||||
|
||||
("/etc/motd" -> ,(file-append (with-parameters ((%current-target-system
|
||||
"i586-pc-gnu"))
|
||||
hurd)
|
||||
"/etc/motd"))
|
||||
("/etc/login" -> ,(file-append (with-parameters ((%current-target-system
|
||||
"i586-pc-gnu"))
|
||||
hurd)
|
||||
"/etc/login"))
|
||||
|
||||
|
||||
;; 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"))
|
||||
|
|
Loading…
Reference in a new issue