[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/47: hurd-boot: Setup pci-arbiter and rumpdisk translators.
From: |
guix-commits |
Subject: |
17/47: hurd-boot: Setup pci-arbiter and rumpdisk translators. |
Date: |
Sat, 3 Jun 2023 07:23:38 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit b89db3c274928ea06a4c7e4dad1b039ba1b6e395
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed May 17 07:16:26 2023 +0200
hurd-boot: Setup pci-arbiter and rumpdisk translators.
* gnu/build/hurd-boot.scm (make-hurd-device-nodes): Create "servers/bus/pci.
(set-hurd-device-translators): Create transators for pci-arbiter, rumpdisk,
and /dev/wd0..3s1..4.
---
gnu/build/hurd-boot.scm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index 95c15907dd..7cfffc876e 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 @@ Return the value associated with OPTION, or #f on failure."
;; 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 @@ set."
(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 @@ set."
;; '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
@@ -236,7 +239,22 @@ set."
("/hurd/term" ,(string-append "/dev/ttyp" n)
"pty-slave" ,(string-append "/dev/ptyp" n))
#o666))))
- (iota 10 0))))
+ (iota 10 0))
+ ,@(append-map (lambda (n)
+ (let* ((n (number->string n))
+ (drive (string-append "dev/wd" n))
+ (disk (string-append "@/dev/disk:wd" n)))
+ `((,drive ("/hurd/storeio" ,disk) #o600)
+ ,@(map (lambda (p)
+ (let ((p (number->string p)))
+ `(,(string-append drive "s" p)
+ ("/hurd/storeio"
+ "--store-type=typed"
+ ,(string-append
+ "part:" p ":device:@" disk))
+ #o660)))
+ (iota 4 1)))))
+ (iota 4 0))))
(for-each scope-set-translator servers)
(mkdir* "dev/vcs/1")
@@ -249,6 +267,7 @@ set."
(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")))
- 16/47: gnu: hurd: Add rumpkernel., (continued)
- 16/47: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/03
- 21/47: gnu: gnumach: Support "noide" argument., guix-commits, 2023/06/03
- 05/47: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/03
- 10/47: squash! gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/03
- 13/47: gnu: Add rumpkernel., guix-commits, 2023/06/03
- 25/47: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/03
- 23/47: hurd-boot: Cater for netdde., guix-commits, 2023/06/03
- 30/47: gnu: commencement: mig-boot0: Update to 1.8+git20230520., guix-commits, 2023/06/03
- 02/47: gnu: glibc/hurd-headers: Properly cross-build., guix-commits, 2023/06/03
- 15/47: gnu: parted: Support building for the Hurd., guix-commits, 2023/06/03
- 17/47: hurd-boot: Setup pci-arbiter and rumpdisk translators.,
guix-commits <=
- 27/47: gnu: commencement: Add autoconf-boot0., guix-commits, 2023/06/03
- 26/47: gnu: gnumach: Disable builtin networking., guix-commits, 2023/06/03
- 28/47: gnu: commencement: Add automake-boot0., guix-commits, 2023/06/03
- 34/47: gnu: commencement: glibc-final: Use libc-for-target for source too., guix-commits, 2023/06/03
- 33/47: gnu: commencement: glibc-final-with-bootstrap-bash: Use libc-for-target., guix-commits, 2023/06/03
- 42/47: gnu: gettext-minimal: Remove XFAIL_TESTS for the Hurd., guix-commits, 2023/06/03
- 01/47: hurd-boot: Add urandom and default-pager translators., guix-commits, 2023/06/03
- 04/47: gnu: hurd: Update supported systems., guix-commits, 2023/06/03
- 07/47: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/03
- 14/47: gnu: hurd-minimal: Include libshouldbeinlibc and libstore., guix-commits, 2023/06/03