From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gBQRKLeOsWZBFAAAqHPOHw:P1 (envelope-from ) for ; Tue, 06 Aug 2024 02:47:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gBQRKLeOsWZBFAAAqHPOHw (envelope-from ) for ; Tue, 06 Aug 2024 04:47:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Hc9FfS3h; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b=BfWG9kxm; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=jaeh6P8o; 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=1722912439; 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=t3putvifLmBtxRMBIO2MkhAQkvsLpbOrET+GfLPM8+U=; b=oa3R+QGG2G4i1Z7D+TF12ksICtrHE5KzwUhnpBsrezUUFHD7Qu3Px9zrxpeOPjw27EBQpv HhNMIQOUd4F3sl6VJEJCJjrem10NufwinNp7AS11/4CB0KDsPE1Y0qMOhPAEWXFGJeMUle Ptmfg0+BBqa6YHHaCglYpCKG6P9FsBYa/0DLH+ifq1m0uvBEs8SFei+kgs7LQr0FifiAnB 9sD/LOJ1/qdTJmfa4TBoGosZoNboGhj5GGCOk3GaG4rHcsMNR7eepx7d1U4PKDrqy8FuGD AtUruY6NJKPnIYvATprfo8c5+hfp/Kdp1ORMxD+WtLK7mK32HWWMyDZ/9FDx6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Hc9FfS3h; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b=BfWG9kxm; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=jaeh6P8o; 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=1722912439; a=rsa-sha256; cv=none; b=qoWrraX1TI8xwKF53XPfmVA60HArzupeYpbFd1l30W0ZzPDCmz4KOMGtQpxZ0i7RqAO9ra JJjIkPkhz0ZXWxG1gR+M7zGPXj7fcTO9uYwRWmoYWh2R6GrsK+du3Rqhmd6PDR1R9eBngW YxiykUjJZWdtY/6mE0zXCGeXUppSESYRUG5ZzX6Igsj7PRZgmTLz6OHvzcIYxrCCgTQXVo ubXhLsIFN40RavEnWwKcEr51ZAUI7M8PIHcdFLPAi8Veweir5IEMZH8FtY51491mLK6yk3 ZHcCxoDQgxa9lBPEijvJOQwz9j+ltaJNswzgqEj+b8kn2u6FaMie6eoVq22PXw== 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 5E4353E743 for ; Tue, 6 Aug 2024 04:47:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbADj-0000rP-RZ; Mon, 05 Aug 2024 22:46:43 -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 1sbADh-0000qz-Nq for guix-patches@gnu.org; Mon, 05 Aug 2024 22:46:42 -0400 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 1sbADh-0001Hk-F6 for guix-patches@gnu.org; Mon, 05 Aug 2024 22:46:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=t3putvifLmBtxRMBIO2MkhAQkvsLpbOrET+GfLPM8+U=; b=Hc9FfS3h8gn74T4c/7ieLSC2zuLTGpTeVVleLASnKtS1VOnvR5wtfzPY224cmPXRlCh0NqfKJGzgh24aktW2MZRIN96yTJV3KSycVXtNfdaUWJsFptHJPF53Aehho2jVK0SYebA6Vdyk9n8k4HubdKhKFa48+YH2u50kDwxLWHJkWYjju9iljJxtTfXgLbx2Me+GRUn7QgZJPoEyCwgkVtIBK85huP3TKexM07Ogm68lxqFp1bqBdxb5NFP+jBNW7VPTPd8ORHJZMJ+LuFa4OhfgUR1VUPM4ZjwrPjNBGFlXGjE6PlXawmU3wErFVtuQGyuHhaxrJSGieZ+3XrP5vQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbAE4-0008UR-5a for guix-patches@gnu.org; Mon, 05 Aug 2024 22:47:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72457] [PATCH v4 05/15] gnu: system: Remove useless boot parameters. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Aug 2024 02:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72457 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72457@debbugs.gnu.org Cc: Lilah Tascheter , Sergey Trofimov Received: via spool by 72457-submit@debbugs.gnu.org id=B72457.172291238932371 (code B ref 72457); Tue, 06 Aug 2024 02:47:04 +0000 Received: (at 72457) by debbugs.gnu.org; 6 Aug 2024 02:46:29 +0000 Received: from localhost ([127.0.0.1]:59655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbADU-0008Py-H2 for submit@debbugs.gnu.org; Mon, 05 Aug 2024 22:46:29 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:38540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbADS-0008P3-4J for 72457@debbugs.gnu.org; Mon, 05 Aug 2024 22:46:26 -0400 DKIM-Signature: a=rsa-sha256; b=BfWG9kxmxt/i1S9XUBWeSmlx07NI3Kft+GeaXQtt8WF03sA6YRZ4Tgi9qwQV5fUGxaTxXedtwWITRPtMYkASy4Re0mnMoHttssQc4A5qc5ml6gUucQTz44UyVMswCddbeuiBHFyWeKSR51W08YBwiyklkDyAi94+cYfJ03wRKhmxrxpKUX63c1sKstzvz+LI2B8CkRwS4O+3H1qzLUN3f+DjlBLDhtOP+nkTTxbaTxteT1DyYsfJwZ+CXMaAH2DKDjrkXSBZGjGYXSIOo/KlF8lk0kI6A8i27rxvUF4Yg0hH3mvcGETGV+87TxmUOEIJdnuqsH3GmrzBHrVO4hvDzg==; s=purelymail3; d=lunabee.space; v=1; bh=ol1uWhvcd6jg8jrl+jAW7wdPNF/rhebpv51yL/ZJ3vU=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=jaeh6P8otiY9apgv8+dDL0Yuwx/9YQ/dxBy2mGDzwTp1krdM2+gYDoZ5bvuFy9zoEPdXo3oFHjOpjouGCV/UV72bcOKDYxfiXRadH4Fy9CGc55VgivB6YGb19pVQF/onuXkWBOIAQsWINKZ4rjqNdpFdmGsRCOykOFDJ+twQaxsSbfam7ZMPXlAaKxJZfmdPYwA6mYxqZ8SvPx0l1ozOoEvQIIbZKdIdagHA7PxjgWJimKq+dGD+O6pMQsEOgZyNWB2Du+pC5er5iO/WmK6QCiDF8pN11QjDnoiS2MeF4/cYhyU3cB9KCBJUl7l4OFOCXS4lNTbA+S18pnPuGF5OLw==; s=purelymail3; d=purelymail.com; v=1; bh=ol1uWhvcd6jg8jrl+jAW7wdPNF/rhebpv51yL/ZJ3vU=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: 72457@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1040940465; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 06 Aug 2024 02:45:49 +0000 (UTC) Date: Mon, 5 Aug 2024 21:44:43 -0500 Message-ID: <72ad6263bde621d5d9ceb6a2bd11fdff3bf7b0cc.1722912293.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-Queue-Id: 5E4353E743 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.94 X-Spam-Score: -6.94 X-TUID: kATCYC1dNazk * gnu/system.scm (operating-system-boot-parameters, operating-system-boot-parameters-file): Delete bootloader-menu-entries. * gnu/system/boot.scm (boot-parameters)[bootloader-menu-entries]: Delete fields. (read-boot-parameters): Don't read bootloader-menu-entries. * tests/boot-parameters.scm (%grub-boot-parameters, test-read-boot-parameters, test-read-boot-parameters): Don't include bootloader-menu-entries. ("read, bootloader-menu-entries, default value"): Delete test. Change-Id: I46d9cff4604dbfcf654b0820fdb77e72aecffbb4 --- gnu/system.scm | 7 ------- gnu/system/boot.scm | 8 -------- tests/boot-parameters.scm | 14 ++------------ 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index a345b52d55..66c1a80733 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -1304,8 +1304,6 @@ (define* (operating-system-boot-parameters os root-de= vice (initrd initrd) (multiboot-modules multiboot-modules) (bootloader-name bootloader-name) - (bootloader-menu-entries - (bootloader-configuration-menu-entries (operating-system-bootloader = os))) (locale locale) (store-device (ensure-not-/dev (file-system-device store))) (store-directory-prefix (btrfs-store-subvolume-file-name file-systems= )) @@ -1347,11 +1345,6 @@ (define* (operating-system-boot-parameters-file os) #$(boot-parameters-multiboot-modules param= s))) #~()) (bootloader-name #$(boot-parameters-bootloader-name p= arams)) - (bootloader-menu-entries - #$(map menu-entry->sexp - (or (and=3D> (operating-system-bootloader os) - bootloader-configuration-menu-entr= ies) - '()))) (locale #$(boot-parameters-locale params)) (store (device diff --git a/gnu/system/boot.scm b/gnu/system/boot.scm index 2b5302ce5f..4d89827ced 100644 --- a/gnu/system/boot.scm +++ b/gnu/system/boot.scm @@ -54,7 +54,6 @@ (define-module (gnu system boot) boot-parameters-label boot-parameters-root-device boot-parameters-bootloader-name - boot-parameters-bootloader-menu-entries boot-parameters-store-crypto-devices boot-parameters-store-device boot-parameters-store-directory-prefix @@ -113,8 +112,6 @@ (define-record-type* ;; partition. (root-device boot-parameters-root-device) (bootloader-name boot-parameters-bootloader-name) - (bootloader-menu-entries ;list of - boot-parameters-bootloader-menu-entries) (store-device boot-parameters-store-device) (store-mount-point boot-parameters-store-mount-point) (store-directory-prefix boot-parameters-store-directory-prefix) @@ -176,11 +173,6 @@ (define (read-boot-parameters port) ((_ args) (list args)) (#f 'grub))) ; for compatibility reasons. =20 - (bootloader-menu-entries - (match (assq 'bootloader-menu-entries rest) - ((_ entries) (map sexp->menu-entry entries)) - (#f '()))) - ;; In the past, we would store the directory name of linux instead o= f ;; the absolute file name of its image. Detect that and correct it. (kernel (if (string=3D? kernel (direct-store-path kernel)) diff --git a/tests/boot-parameters.scm b/tests/boot-parameters.scm index 2e7976aa6c..f214de360d 100644 --- a/tests/boot-parameters.scm +++ b/tests/boot-parameters.scm @@ -64,7 +64,6 @@ (define %root-path "/") (define %grub-boot-parameters (boot-parameters (bootloader-name 'grub) - (bootloader-menu-entries '()) (root-device %default-root-device) (label %default-label) (kernel %default-kernel) @@ -107,7 +106,6 @@ (define* (test-read-boot-parameters #:key (version %boot-parameters-version) (bootloader-name 'grub) - (bootloader-menu-entries '()) (label %default-label) (root-device (quote-uuid %default-root-device)) (kernel %default-kernel) @@ -127,7 +125,7 @@ (define* (test-read-boot-parameters (cond ((eq? 'false val) (format #false fmt #false)) (val (format #false fmt val)) (else ""))) - (format #false "(boot-parameters~a~a~a~a~a~a~a~a~a~a)" + (format #false "(boot-parameters~a~a~a~a~a~a~a~a~a)" (sexp-or-nothing " (version ~S)" version) (sexp-or-nothing " (label ~S)" label) (sexp-or-nothing " (root-device ~S)" root-device) @@ -145,9 +143,7 @@ (define* (test-read-boot-parameters store-crypto-devices)) "") (sexp-or-nothing " (locale ~S)" locale) - (sexp-or-nothing " (bootloader-name ~a)" bootloader-name) - (sexp-or-nothing " (bootloader-menu-entries ~S)" - bootloader-menu-entries))) + (sexp-or-nothing " (bootloader-name ~a)" bootloader-name))) (let ((str (generate-boot-parameters))) (call-with-input-string str read-boot-parameters))) =20 @@ -170,7 +166,6 @@ (define* (test-read-boot-parameters =20 (test-assert "read, construction, optional fields" (and (test-read-boot-parameters #:bootloader-name #false) - (test-read-boot-parameters #:bootloader-menu-entries #false) (test-read-boot-parameters #:kernel-arguments #false) (test-read-boot-parameters #:with-store #false) (test-read-boot-parameters #:store-device #false) @@ -223,11 +218,6 @@ (define* (test-read-boot-parameters (boot-parameters-bootloader-name (test-read-boot-parameters #:bootloader-name #false))) =20 -(test-eq "read, bootloader-menu-entries, default value" - '() - (boot-parameters-bootloader-menu-entries - (test-read-boot-parameters #:bootloader-menu-entries #false))) - (test-eq "read, kernel-arguments, default value" '() (boot-parameters-kernel-arguments --=20 2.45.2