From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aJdfFKXyZWQWYAAASxT56A (envelope-from ) for ; Thu, 18 May 2023 11:40:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6I1rFKXyZWQUowAA9RJhRA (envelope-from ) for ; Thu, 18 May 2023 11:40:53 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 26BF414BB0 for ; Thu, 18 May 2023 11:40:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pza7D-0002Lm-No; Thu, 18 May 2023 05:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pza7B-0002KP-0I for guix-patches@gnu.org; Thu, 18 May 2023 05:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pza7A-0006c8-Ob for guix-patches@gnu.org; Thu, 18 May 2023 05:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pza7A-0004Jd-Jx for guix-patches@gnu.org; Thu, 18 May 2023 05:40:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63527] [PATCH v4 6/8] hurd-boot: Setup pci-arbiter and rumpdisk translators. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 09:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63527 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63527@debbugs.gnu.org Received: via spool by 63527-submit@debbugs.gnu.org id=B63527.168440277516463 (code B ref 63527); Thu, 18 May 2023 09:40:04 +0000 Received: (at 63527) by debbugs.gnu.org; 18 May 2023 09:39:35 +0000 Received: from localhost ([127.0.0.1]:52078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pza6g-0004HN-CT for submit@debbugs.gnu.org; Thu, 18 May 2023 05:39:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pza6a-0004Fz-D3 for 63527@debbugs.gnu.org; Thu, 18 May 2023 05:39:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pza6V-0006Mc-6i; Thu, 18 May 2023 05:39:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=zl/bUEIf0LqRdL7LWKulZB6Pk4FbZtCp59YHQEM4g3A=; b=L8/kI9Y2gI4LeZ5G8Run tXEuMDtHqees+HNCGNRTgaXP1qEsuMDHs/2UXsCaXgwFdInrrWsqF7b7Cu2cHqoq+shPzCvLbOYhj 1QxK2F05fuZUD5o/ickeTgXokJs2iETUCPK37R8E2nebHpXtPc/5leNJjLKpAuTHMCjEby7bwUju8 DEk/+AqjpSwmf/HgnVSSWP2QzUujvu6orcUlsFtFBP1KlJEiJTrqJM0EkBfRARfW0YEWfvq0Lf/U+ S96n3Sqir8nybyqGMbb0EcqQqX7rda5tAqgblNe/xvU/ZjmldTsV+ZDT7hysDyG6F8qDB+5PSsUmO klL1iVT8Fe3O5A==; Received: from [2a02:a462:da03:1:2701:7f81:a736:4607] (helo=drakenpad.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.90_1) (envelope-from ) id 1pza6U-0006zE-QL; Thu, 18 May 2023 05:39:23 -0400 From: Janneke Nieuwenhuizen Date: Thu, 18 May 2023 11:39:01 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684402853; a=rsa-sha256; cv=none; b=jTQQMOreDO1HcmntTvvKNhi8ArHZyaUeo8zPrpAkEnsxyJG06WV/9ncmdnKCZzf9FOgoyB kII3c1OfQsnFVV4HqqEKbne2iZ2tdJX5fr67tWQBWDYwx6gQJbK6VZrB2tm1D/S9Z+XETz 0L2O25wSX6dMB0GRDUE0JUvuTVx/hCxSE91pOotEqSGcHchkjlbFunGwfKJqfFknGiFNa6 PtK7mGVsfPE8w0kifpb3Wj6yFcGkJkOk4Pi+Lv9QnwbH+VZ7KGwoCXzihCoChAEfq8bH4T L98wJ4zWacmt2zRYpcFRLNErwB2uKH+RaOeQUJy3uOQG1HxyL/+r26GMbqkAxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="L8/kI9Y2"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684402853; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zl/bUEIf0LqRdL7LWKulZB6Pk4FbZtCp59YHQEM4g3A=; b=Mj2DksvqLM3O/0OwB1u/pvrtM/PhjHwEnHHP2I8tWSRuC1N4emdW4/p4USd/py+GIj0+T3 j6QQzns/yz0QsTrEU2jRn8EXe281M2igI4dz820AW189LKuMz86arIelcMOFjh4IwbwZ8t hGhchFdcPsGSTSwn36CErkdZ0eNjf6VchAcHY/sX19Zt5e4CFHRrmMmFxfRbKnlk8aEllx fHzmpPbzY6ZIN2UM3C8k1A5iYavwDH7PZNdQm6e19hJAtimAWAlL8xxnFssjTrojmomdJi 2o1A60g2/hvoF9tOAKz1tKkYaEHTlHYWxwD0KGFHaG4S0b71jUupAaTZo7vAeg== X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: 26BF414BB0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="L8/kI9Y2"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: 1iZTy2lG+xcV * 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 -;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen ;;; ;;; 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