[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: system: hurd: Create /etc/{hostname,motd,login} and /root.
From: |
guix-commits |
Subject: |
03/07: system: hurd: Create /etc/{hostname,motd,login} and /root. |
Date: |
Mon, 6 Apr 2020 13:33:24 -0400 (EDT) |
civodul pushed a commit to branch wip-hurd-vm
in repository guix.
commit d7b258eb848fb738c2d9e5665ad34d068547afdc
Author: Ludovic Courtès <address@hidden>
AuthorDate: Mon Apr 6 14:58:58 2020 +0200
system: hurd: Create /etc/{hostname,motd,login} and /root.
* gnu/system/hurd.scm (cross-hurd-image): Add /etc/{hostname,motd,login}
and /root.
---
gnu/system/hurd.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index e735ff0..8376e0c 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"))
- branch wip-hurd-vm updated (3a6eb2c -> eef7e0f), guix-commits, 2020/04/06
- 01/07: squash! DRAFT: gnu: hurd: Provide our own /libexec/rc script., guix-commits, 2020/04/06
- 02/07: gnu: hurd: Install the UTF-8 motd., guix-commits, 2020/04/06
- 03/07: system: hurd: Create /etc/{hostname,motd,login} and /root.,
guix-commits <=
- 04/07: database: 'reset-timestamps' can optionally preserve permissions., guix-commits, 2020/04/06
- 05/07: vm: Preserve file permissions on /dev., guix-commits, 2020/04/06
- 06/07: squash! gnu: hurd: Ensure startup scripts refer to the right programs., guix-commits, 2020/04/06
- 07/07: linux-boot: 'make-essential-device-nodes' root parameter is optional., guix-commits, 2020/04/06