From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YJE/M6nL6mUt/QAAe85BDQ:P1 (envelope-from ) for ; Fri, 08 Mar 2024 09:26:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YJE/M6nL6mUt/QAAe85BDQ (envelope-from ) for ; Fri, 08 Mar 2024 09:26:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail2 header.b=NYjvTWOo; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=IdIhwC0p; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709886377; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=msNem+6QadbBSidqU+ADtf4MkTtlI46jYZ8pZDIhPh8=; b=Gyl5WATF12UzBLvsdye4gNMEiScOW4HOtEom+u2ryh4qkAboS+JP0Gctb+MgVPK9LKQGCl fj62tYbD2A5/6tqZeLHPvKXno0Dqs7ZZbbO70FCimS7OizvFP/aHlf8/iQHNqAIgMigeh9 iJ0RXkNA5QyFDlQFqylOqswf3Oydm3+B8oliD1fpywHo6TdEMAm7TQ9UhNSxpTh8yCHGsp OtDpJY2aeV5zWs7uc8lTXPMj64CHjNno8y3GvHGPo2vadKTB8/DB7FH1YdBcyobHAmCUdo hZwwRwUiAilrtpc2aFkjXTj5CreSZ9jyUIWa59QeE3OENeQk5qIAMz+O+8iBvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail2 header.b=NYjvTWOo; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=IdIhwC0p; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709886377; a=rsa-sha256; cv=none; b=oH40qKfgOQpR40jl1xGtTr4QBAf8D2vrSdw/KS1uwWETBCOFPOYgjilpYSJ1guxfvcLXhF 6tRLyowiDKc3WB5+lS7r/K5VrY1eVHrnICUD77YoWQEULGy7cEVm4EoleVk3dFdozRZIGT jr7iPTgWRf27FtAun4IFN/KbVVlPgvosqxJdODSDViK1Pl58q4HAd6yJWf/nDl4AukHlk9 xbC3pBldT55R8WG8yEokkRtpJvz06TdGTp1PXPPgVIkc2/B3cAwmH+sQRvvVQLKhYFZ39v WheLXXhdiHZ5tQEKMxRvlt1LyOTOt5qT2JEypz2RDsQou0koyJ2vzKfvbFzAGw== 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 963A81C594 for ; Fri, 8 Mar 2024 09:26:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riVXz-0003xe-Lz; Fri, 08 Mar 2024 03:25:43 -0500 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 1riVXr-0003tz-EJ for guix-patches@gnu.org; Fri, 08 Mar 2024 03:25:36 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riVXn-00017f-JD for guix-patches@gnu.org; Fri, 08 Mar 2024 03:25:33 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riVYJ-0002da-7v for guix-patches@gnu.org; Fri, 08 Mar 2024 03:26:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69343] [PATCH v2 03/12] Also move boot-parameters->menu-entry. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Mar 2024 08:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69343@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 69343-submit@debbugs.gnu.org id=B69343.17098863169856 (code B ref 69343); Fri, 08 Mar 2024 08:26:03 +0000 Received: (at 69343) by debbugs.gnu.org; 8 Mar 2024 08:25:16 +0000 Received: from localhost ([127.0.0.1]:56372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riVXX-0002Yp-MH for submit@debbugs.gnu.org; Fri, 08 Mar 2024 03:25:16 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]:44420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riVXR-0002Xh-Pf for 69343@debbugs.gnu.org; Fri, 08 Mar 2024 03:25:12 -0500 DKIM-Signature: a=rsa-sha256; b=NYjvTWOoNOHhobAvEz2lexrd02AD9HC6rlcjEnVLFvkkOHYsCL+RX1YU3bfvgIAoCgPTGB7WUF/gYr8K3F44C3yRJKSH873Gw1ZvVpGwc1iU0bIhd3xNPBfNX/U/3tG1jW9tq+oaCWgVm522fgXPqnVWCI9qo78supkvdU1GATnjNcfFigK6StSDQIjbKXO2POcN+Q5w4feAVTcgIK/kXqA0OingClJy56YGYPW+FlcKXwx5vqlliU+upajFOVS1dEENuwCr/3wggxaWGwvkIQMoDEp26ihV8zocWsDrnSxhG8pqSz9gIyKMt08HCCI5moqqtpJMhxkBzRlOM1iUNA==; s=purelymail2; d=lunabee.space; v=1; bh=/VJhDQboy/jow/7qyOsO5u1Zdw4fsR4EolZBMKglkVY=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=IdIhwC0pornuvEjfXN/L3xm+Dx18ygeWnHXFLnABey5XTPsL6+DlMIMyEk2BKvxasB1e/Uhiuwd4G4CJMQE5BQnU/R8kPpHAF3HitSaBlmsaGHlC06qsfdStWEIalvnrjSQ2fTQSlwybPsLNBF9f+16PsbwIsndWRQ8Cj9fWaPRrk/3SuRwNvZz/8JbOm3ScJgvbxqtVsLu2+QelyjojicXXneAnfyrcVqadnsS11qXzvtxOBjgpEzfBIx7Vt+8hcgK8SyykDeCZJS7O43DyU9SYT5FLm3Y6h/hMdH97JDhg+aF1TXR8/8PUYdvld401ZqNpNyeWXv6n3RtX6l1HCw==; s=purelymail2; d=purelymail.com; v=1; bh=/VJhDQboy/jow/7qyOsO5u1Zdw4fsR4EolZBMKglkVY=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: 69343@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 637763825; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 08 Mar 2024 08:24:18 +0000 (UTC) Date: Fri, 8 Mar 2024 02:11:59 -0600 Message-ID: <3ea3ac3e5c436726d19ea4df603f88d0bc861c2e.1709885528.git.lilah@lunabee.space> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 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: , From: Lilah Tascheter via Guix-patches Reply-To: Lilah Tascheter 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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.78 X-Spam-Score: -6.78 X-Migadu-Queue-Id: 963A81C594 X-TUID: YbCCfkT2CrG0 From: Felix Lechner * gnu/system.scm (boot-parameters->menu-entry): Move to... * gnu/system/boot.scm (boot-parameters->menu-entry): ...here. Change-Id: I794198e074b6d3012526a3056599ee3db1f1cdba --- gnu/system.scm | 28 ---------------------------- gnu/system/boot.scm | 25 ++++++++++++++++++++++++- 2 files changed, 24 insertions(+), 29 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index 048f9090e0..11f8e06cc0 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -149,8 +149,6 @@ (define-module (gnu system) =20 hurd-default-essential-services =20 - boot-parameters->menu-entry - local-host-aliases ;deprecated %root-account %setuid-programs @@ -303,32 +301,6 @@ (define* (operating-system-kernel-arguments (append (bootable-kernel-arguments os root-device version) (operating-system-user-kernel-arguments os))) =20 -=0C -;;; -;;; Boot parameters -;;; - -(define (boot-parameters->menu-entry conf) - "Return a instance given CONF, a instance= ." - (let* ((kernel (boot-parameters-kernel conf)) - (multiboot-modules (boot-parameters-multiboot-modules conf)) - (multiboot? (pair? multiboot-modules))) - (menu-entry - (label (boot-parameters-label conf)) - (device (boot-parameters-store-device conf)) - (device-mount-point (boot-parameters-store-mount-point conf)) - (linux (and (not multiboot?) kernel)) - (linux-arguments (if (not multiboot?) - (boot-parameters-kernel-arguments conf) - '())) - (initrd (boot-parameters-initrd conf)) - (multiboot-kernel (and multiboot? kernel)) - (multiboot-arguments (if multiboot? - (boot-parameters-kernel-arguments conf) - '())) - (multiboot-modules (if multiboot? - (boot-parameters-multiboot-modules conf) - '()))))) =20 =0C ;;; diff --git a/gnu/system/boot.scm b/gnu/system/boot.scm index 3f227ab801..a3b9cce7d2 100644 --- a/gnu/system/boot.scm +++ b/gnu/system/boot.scm @@ -69,6 +69,8 @@ (define-module (gnu system boot) read-boot-parameters read-boot-parameters-file =20 + boot-parameters->menu-entry + ensure-not-/dev system-linux-image-file-name)) =20 @@ -272,6 +274,28 @@ (define (read-boot-parameters-file system) (kernel-arguments (append (bootable-kernel-arguments system root vers= ion) (boot-parameters-kernel-arguments params)))= ))) =20 +(define (boot-parameters->menu-entry conf) + "Return a instance given CONF, a instance= ." + (let* ((kernel (boot-parameters-kernel conf)) + (multiboot-modules (boot-parameters-multiboot-modules conf)) + (multiboot? (pair? multiboot-modules))) + (menu-entry + (label (boot-parameters-label conf)) + (device (boot-parameters-store-device conf)) + (device-mount-point (boot-parameters-store-mount-point conf)) + (linux (and (not multiboot?) kernel)) + (linux-arguments (if (not multiboot?) + (boot-parameters-kernel-arguments conf) + '())) + (initrd (boot-parameters-initrd conf)) + (multiboot-kernel (and multiboot? kernel)) + (multiboot-arguments (if multiboot? + (boot-parameters-kernel-arguments conf) + '())) + (multiboot-modules (if multiboot? + (boot-parameters-multiboot-modules conf) + '()))))) + (define (ensure-not-/dev device) "If DEVICE starts with a slash, return #f. This is meant to filter out Linux device names such as /dev/sda, and to preserve GRUB device names and @@ -292,5 +316,4 @@ (define* (system-linux-image-file-name #:optional ((string-prefix? "riscv64" target) "Image") (else "bzImage"))) =20 - ;;; boot.scm ends here --=20 2.41.0