[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/52: system: hurd: Add "/etc/shadow".
From: |
guix-commits |
Subject: |
20/52: system: hurd: Add "/etc/shadow". |
Date: |
Thu, 9 Apr 2020 13:29:06 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit c0d033f74b899eccae852a36cc1a6d3be219b996
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sun Apr 5 19:06:28 2020 +0200
system: 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 d1c22a7..65f62d3 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
- 06/52: gnu: cross-libc: Add patch to add 'mach_print' symbol on GNU/Hurd., (continued)
- 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, 2020/04/09
- 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 <=
- 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
- 22/52: system: hurd: Create /etc/{hostname,motd,login} and /root., guix-commits, 2020/04/09
- 29/52: linux-boot: Add 'make-hurd-device-nodes'., guix-commits, 2020/04/09
- 28/52: gnu: guix: Apply courage for the Hurd., guix-commits, 2020/04/09