[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/28: linux-boot: Update 'make-hurd-device-nodes'.
From: |
guix-commits |
Subject: |
10/28: linux-boot: Update 'make-hurd-device-nodes'. |
Date: |
Sat, 30 May 2020 11:20:14 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 4479c1c1e3f9655544e0f5014fd30e214e009bdc
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun May 24 12:41:32 2020 +0200
linux-boot: Update 'make-hurd-device-nodes'.
* gnu/build/linux-boot.scm (make-hurd-device-nodes): Avoid de-duplication of
device mount points; also create mount points for /servers/.
---
gnu/build/linux-boot.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
index f08bb11..d62c670 100644
--- a/gnu/build/linux-boot.scm
+++ b/gnu/build/linux-boot.scm
@@ -337,6 +337,7 @@ one specific hardware device. These we have to create."
(for-each (lambda (file)
(call-with-output-file (scope file)
(lambda (port)
+ (display file port) ;avoid hard-linking
(chmod port #o666))))
'("dev/null"
"dev/zero"
@@ -347,6 +348,20 @@ one specific hardware device. These we have to create."
;; console-run on first boot.
(mkdir (scope "servers"))
+ (for-each (lambda (file)
+ (call-with-output-file (scope (string-append "servers/" file))
+ (lambda (port)
+ (display file port) ;avoid hard-linking
+ (chmod port #o444))))
+ '("startup"
+ "exec"
+ "proc"
+ "password"
+ "default-pager"
+ "crash-dump-core"
+ "kill"
+ "suspend"))
+
(mkdir (scope "servers/socket"))
;; Don't create /servers/socket/1 & co: runsystem does that on first boot.
- 03/28: vm: 'qemu-image' uses the native partitioning tools and bootloader., (continued)
- 03/28: vm: 'qemu-image' uses the native partitioning tools and bootloader., guix-commits, 2020/05/30
- 05/28: vm: <virtual-machine> compiler honors system and target., guix-commits, 2020/05/30
- 08/28: gnu: hurd: Update to upstream Hurd-reserved xattr index., guix-commits, 2020/05/30
- 14/28: bootloader: Extend `<menu-entry>' for multiboot., guix-commits, 2020/05/30
- 01/28: system: 'system-linux-image-file-name' takes an optional parameter., guix-commits, 2020/05/30
- 04/28: vm: 'qemu-image' preserves the cross-compilation target of the OS., guix-commits, 2020/05/30
- 02/28: vm: 'expression->derivation-in-linux-vm' always returns a native build., guix-commits, 2020/05/30
- 07/28: gnu: guile-static: Disable JIT on ARMv7., guix-commits, 2020/05/30
- 09/28: image: Add Hurd support., guix-commits, 2020/05/30
- 06/28: vm: Shared-store script runs that native QEMU and Bash., guix-commits, 2020/05/30
- 10/28: linux-boot: Update 'make-hurd-device-nodes'.,
guix-commits <=
- 11/28: image: Support extra-directives, add hurd-directives., guix-commits, 2020/05/30
- 12/28: system: hurd: Add hurd-default-essential-services., guix-commits, 2020/05/30
- 15/28: system: Add 'multiboot-modules' field to <boot-parameters>., guix-commits, 2020/05/30
- 18/28: system: examples: Add bare-hurd.tmpl., guix-commits, 2020/05/30
- 13/28: system: Add 'hurd' field to <operating-system>., guix-commits, 2020/05/30
- 17/28: system: Use 'hurd' package in label., guix-commits, 2020/05/30
- 16/28: bootloader: grub: Add support for multiboot., guix-commits, 2020/05/30
- 23/28: services: Add `hurd-console-service-type'., guix-commits, 2020/05/30
- 26/28: system: hurd: Remove 'cross-hurd-image' hack., guix-commits, 2020/05/30
- 21/28: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/30