[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/52: system: hurd: Add "/etc/passwd".
From: |
guix-commits |
Subject: |
17/52: system: hurd: Add "/etc/passwd". |
Date: |
Thu, 9 Apr 2020 13:29:05 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit ffdea08b8f8eb039470034310ad2266a7f3903f7
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sun Apr 5 14:36:34 2020 +0200
system: hurd: Add "/etc/passwd".
* gnu/system/hurd.scm: Generate a hard coded /etc/passwd, allows running
chown
in MAKEDEV.
---
gnu/system/hurd.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index ae34b12..7fe3a2b 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -80,6 +80,12 @@ menuentry \"GNU\" {
/dev/hd0s1 / ext2 defaults
"))
+ (define passwd
+ (plain-file "passwd"
+"root:x:0:0:root:/root:/bin/sh
+"
+))
+
(define hurd-directives
`((directory "/servers")
,@(map (lambda (server)
@@ -104,6 +110,7 @@ menuentry \"GNU\" {
hurd)
"/hurd"))
("/etc/fstab" -> ,fstab)
+ ("/etc/passwd" -> ,passwd)
;; 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"))
@@ -114,7 +121,8 @@ menuentry \"GNU\" {
#:file-system-options '("-o" "hurd")
#:inputs `(("system" ,hurd-os)
("grub.cfg" ,grub.cfg)
- ("fstab" , fstab))
+ ("fstab" ,fstab)
+ ("passwd" ,passwd))
#:copy-inputs? #t
#:os hurd-os
#:bootcfg-drv grub.cfg
- 07/52: gnu: hurd: Use a 32-bit MiG when cross-compiling., (continued)
- 07/52: gnu: hurd: Use a 32-bit MiG when cross-compiling., guix-commits, 2020/04/09
- 09/52: gnu: hurd: Record the right file name of 'login'., guix-commits, 2020/04/09
- 12/52: gnu: hurd: Add coreutils to startup scripts., guix-commits, 2020/04/09
- 06/52: gnu: cross-libc: Add patch to add 'mach_print' symbol on GNU/Hurd., guix-commits, 2020/04/09
- 14/52: system: hurd: Add "/etc/fstab"., guix-commits, 2020/04/09
- 08/52: DRAFT: Add (gnu system hurd)., guix-commits, 2020/04/09
- 03/52: vm: 'qemu-image' can pass options to the 'mkfs' command., guix-commits, 2020/04/09
- 13/52: gnu: hurd: Add util-linux to startup scripts., guix-commits, 2020/04/09
- 10/52: gnu: hurd: Ensure startup scripts refer to the right programs., guix-commits, 2020/04/09
- 11/52: gnu: guile@3: Disable JIT on GNU/Hurd., guix-commits, 2020/04/09
- 17/52: system: hurd: Add "/etc/passwd".,
guix-commits <=
- 15/52: gnu: hurd: Add "hurd/sbin" to PATH., guix-commits, 2020/04/09
- 18/52: gnu: cross-libc: Add patch to allow 'gettyent' reading store file names., guix-commits, 2020/04/09
- 20/52: system: hurd: Add "/etc/shadow"., guix-commits, 2020/04/09
- 24/52: vm: Preserve file permissions on /dev., guix-commits, 2020/04/09
- 25/52: linux-boot: 'make-essential-device-nodes' root parameter is optional., guix-commits, 2020/04/09
- 19/52: system: hurd: Add "/bin/sh" symlink., guix-commits, 2020/04/09
- 16/52: system: hurd: Add ttys symlink in "/etc/ttys"., guix-commits, 2020/04/09
- 30/52: vm: Make the device node procedure a parameter., guix-commits, 2020/04/09
- 26/52: gnu: libgcrypt: Fix cross-compilation., guix-commits, 2020/04/09
- 23/52: database: 'reset-timestamps' can optionally preserve permissions., guix-commits, 2020/04/09