guix-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]