[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63527] [PATCH v3 5/7] hurd-boot: Setup pci-arbiter and rumpdisk tra
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#63527] [PATCH v3 5/7] hurd-boot: Setup pci-arbiter and rumpdisk translators. |
Date: |
Thu, 18 May 2023 10:46:03 +0200 |
* gnu/build/hurd-boot.scm (make-hurd-device-nodes): Setup pci-arbiter and
rumpdisk translators.
---
gnu/build/hurd-boot.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index 95c15907dd..25c8f0ea51 100644
--- a/gnu/build/hurd-boot.scm
+++ b/gnu/build/hurd-boot.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020-2022 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -105,7 +105,7 @@ (define* (make-hurd-device-nodes #:optional (root "/"))
;; TODO: Set the 'gnu.translator' extended attribute for passive translator
;; settings?
- )
+ (mkdir-p (scope "servers/bus/pci")))
(define (passive-translator-xattr? file-name)
"Return true if FILE-NAME has an extended @code{gnu.translator} attribute
@@ -183,7 +183,8 @@ (define* (set-hurd-device-translators #:optional (root "/"))
(mkdir-p dir))))
(define servers
- '(("servers/crash-dump-core" ("/hurd/crash" "--dump-core"))
+ '(("servers/bus/pci" ("/hurd/pci-arbiter"))
+ ("servers/crash-dump-core" ("/hurd/crash" "--dump-core"))
("servers/crash-kill" ("/hurd/crash" "--kill"))
("servers/crash-suspend" ("/hurd/crash" "--suspend"))
("servers/password" ("/hurd/password"))
@@ -213,6 +214,8 @@ (define* (set-hurd-device-translators #:optional (root "/"))
;; 'fd_to_filename' in libc expects it.
("dev/fd" ("/hurd/magic" "--directory" "fd") #o555)
+ ("dev/rumpdisk"("/hurd/rumpdisk") #o660)
+
;; Create a number of ttys; syslogd writes to tty12 by default.
;; FIXME: Creating /dev/tty12 leads the console client to switch to
;; tty12 when syslogd starts, which is confusing for users. Thus, do
@@ -249,6 +252,7 @@ (define* (set-hurd-device-translators #:optional (root "/"))
(false-if-EEXIST (symlink "/dev/fd/1" (scope "dev/stdout")))
(false-if-EEXIST (symlink "/dev/fd/2" (scope "dev/stderr")))
(false-if-EEXIST (symlink "crash-dump-core" (scope "servers/crash")))
+ (false-if-EEXIST (symlink "/dev/rumpdisk" (scope "dev/disk")))
;; Make sure /etc/mtab is a symlink to /proc/mounts.
(false-if-exception (delete-file (scope "etc/mtab")))
--
2.39.2
- [bug#63527] [PATCH 1/3] DRAFT gnu: Add rumpkernel., (continued)
- [bug#63527] [PATCH 1/3] DRAFT gnu: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/15
- [bug#63527] [PATCH 2/3] gnu: hurd: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/15
- [bug#63527] [PATCH 3/3] DRAFT system: hurd: Boot with pci.arbiter and rumpdisk., Janneke Nieuwenhuizen, 2023/05/15
- [bug#63527] [PATCH v2 0/3] Initial attempt at rumpdisk support for the Hurd., Janneke Nieuwenhuizen, 2023/05/16
- [bug#63527] [PATCH v3 0/7] Rumpdisk support for the Hurd, Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 2/7] gnu: hurd: Update libpciaccess to 0.17., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 1/7] gnu: Add libpciaccess-0.17., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 5/7] hurd-boot: Setup pci-arbiter and rumpdisk translators.,
Janneke Nieuwenhuizen <=
- [bug#63527] [PATCH v3 4/7] gnu: hurd: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 6/7] services: childhurd: Bump default qemu memory to 2048MB., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 7/7] system: hurd: Boot with pci.arbiter and rumpdisk., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 3/7] gnu: Add rumpkernel., Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v3 0/7] Rumpdisk support for the Hurd, Janneke Nieuwenhuizen, 2023/05/18
- [bug#63527] [PATCH v4 0/8] Rumpdisk support for the Hurd, really!, Janneke Nieuwenhuizen, 2023/05/18