[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/62: system: hurd: Create /etc/{hostname,motd,login} and /root.
From: |
guix-commits |
Subject: |
22/62: system: hurd: Create /etc/{hostname,motd,login} and /root. |
Date: |
Sat, 11 Apr 2020 11:35:48 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 8b728934b76b626c0a9b10cc527182bdd9041c1c
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 65f62d3..64ecffc 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"))
- 14/62: system: hurd: Add "/etc/fstab"., (continued)
- 14/62: system: hurd: Add "/etc/fstab"., guix-commits, 2020/04/11
- 15/62: gnu: hurd: Add "hurd/sbin" to PATH., guix-commits, 2020/04/11
- 16/62: system: hurd: Add ttys symlink in "/etc/ttys"., guix-commits, 2020/04/11
- 08/62: DRAFT: Add (gnu system hurd)., guix-commits, 2020/04/11
- 21/62: gnu: hurd: Install the UTF-8 motd., guix-commits, 2020/04/11
- 25/62: linux-boot: 'make-essential-device-nodes' root parameter is optional., guix-commits, 2020/04/11
- 34/62: gnu: hurd: Add dependency on libgcrypt., guix-commits, 2020/04/11
- 35/62: gnu: hurd: Add dependency on libdaemon., guix-commits, 2020/04/11
- 39/62: gnu: guile-json: Cross-build fix., guix-commits, 2020/04/11
- 62/62: gnu: guix: Run `make update-guix-package'., guix-commits, 2020/04/11
- 22/62: system: hurd: Create /etc/{hostname,motd,login} and /root.,
guix-commits <=
- 30/62: vm: Make the device node procedure a parameter., guix-commits, 2020/04/11
- 32/62: system: hurd: Add guix., guix-commits, 2020/04/11
- 38/62: system: hurd: Add openssh, shepherd., guix-commits, 2020/04/11
- 36/62: gnu: hurd: Install a BDF font., guix-commits, 2020/04/11
- 46/62: system: hurd: Add guile-candy., guix-commits, 2020/04/11
- 47/62: system: hurd: Ensure propagated inputs are also cross-built., guix-commits, 2020/04/11
- 51/62: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/11
- 52/62: gnu: guix: Add dependency on `hurd' when building for the Hurd., guix-commits, 2020/04/11
- 50/62: gnu: Fix typo., guix-commits, 2020/04/11
- 58/62: HACK build.sh, 2GiB disk., guix-commits, 2020/04/11