guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch wip-hurd-vm updated: gnu: hurd: Add `/etc/shadow'.


From: guix-commits
Subject: branch wip-hurd-vm updated: gnu: hurd: Add `/etc/shadow'.
Date: Sun, 05 Apr 2020 13:07:34 -0400

This is an automated email from the git hooks/post-receive script.

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

The following commit(s) were added to refs/heads/wip-hurd-vm by this push:
     new 3a6eb2c  gnu: hurd: Add `/etc/shadow'.
3a6eb2c is described below

commit 3a6eb2cb9639def6484912669866206fbca42810
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sun Apr 5 19:06:28 2020 +0200

    gnu: hurd: Add `/etc/shadow'.
    
    Try:
    
        login root RET RET
    
    * gnu/system/hurd.scm (cross-hurd-image): Generate hard coded /etc/shadow.
    Allows root log-in.
---
 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 e2377d6..e735ff0 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -87,6 +87,12 @@ menuentry \"GNU\" {
 "
 ))
 
+  (define shadow
+    (plain-file "shadow"
+"root::0:0:0:0:::
+"
+))
+
   (define hurd-directives
     `((directory "/servers")
       ,@(map (lambda (server)
@@ -112,6 +118,7 @@ menuentry \"GNU\" {
                                 "/hurd"))
       ("/etc/fstab" -> ,fstab)
       ("/etc/passwd" -> ,passwd)
+      ("/etc/shadow" -> ,shadow)
       ;; 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"))
@@ -127,7 +134,8 @@ menuentry \"GNU\" {
               #:inputs `(("system" ,hurd-os)
                          ("grub.cfg" ,grub.cfg)
                          ("fstab" ,fstab)
-                         ("passwd" ,passwd))
+                         ("passwd" ,passwd)
+                         ("shadow" ,shadow))
               #:copy-inputs? #t
               #:os hurd-os
               #:bootcfg-drv grub.cfg



reply via email to

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