summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-04-06 14:58:58 +0200
committerLudovic Courtès <ludo@gnu.org>2020-04-11 21:01:09 +0200
commit5fbf4f85e1bfe028cc17d6fbcd9e337bf7a9e389 (patch)
tree5191884077ded6731e51d217d9f2957f9f1c88d1 /gnu/system
parentfe1f9646b4533fd4d3ec98bcfaa1b09391396e76 (diff)
downloadguix-patches-5fbf4f85e1bfe028cc17d6fbcd9e337bf7a9e389.tar
guix-patches-5fbf4f85e1bfe028cc17d6fbcd9e337bf7a9e389.tar.gz
system: hurd: Create /etc/{hostname,motd,login} and /root.
* gnu/system/hurd.scm (cross-hurd-image): Add /etc/{hostname,motd,login} and /root.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/hurd.scm19
1 files changed, 17 insertions, 2 deletions
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index 65706161cb..75b9dacd68 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -108,17 +108,32 @@ menuentry \"GNU\" {
("/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"))