From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aK9tETWzz2VNmwAA62LTzQ:P1 (envelope-from ) for ; Fri, 16 Feb 2024 20:10:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aK9tETWzz2VNmwAA62LTzQ (envelope-from ) for ; Fri, 16 Feb 2024 20:10:45 +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=B3vLb1Hw; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=HylaUs5k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lunabee.space (policy=reject); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708110645; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3jxkFyVmOjh5aa7drJRI+SeFRtASh6wGWYpDcwMmoig=; b=iUugPvJhAe3gp7w1ea3mA1sc/P/2Zo+IrMtF8jF9Cyd6LeP2zPFC8ScTcsZ9USshC4kdLA +OoirOAMJS3/QZL+7MG6iT4HlgGGKrT/0XFxBVS3K1Jq1v3QFtg2oiVE/USO+03ZfrKYUL jR6PmJpq0MEBYnMEulLRu+1bLSyvwzz+kk0Q2hrtIdELEmgo1GgKGk+CpGUhgYdp8rMQp0 fxTTk56btWIMMNd2NdoQUc2ntdMU34Le97EZYK584pOfF0fz0YniZbsk3nmoMzf7/0ghKy tPyJwwXw9yjD4EL6+nc634lxJsN4annifDyLcoxWQwTGMCM/JoBZXM2ItK2xHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail2 header.b=B3vLb1Hw; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail2 header.b=HylaUs5k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lunabee.space (policy=reject); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708110645; a=rsa-sha256; cv=none; b=L+L/wMbB5eQpkhoS9WFAoqKY590t+2Krq84CxvYZfbYkufhiLLRN2C/dCS6ue8kXTPscS8 5I74dLaemId6ZErGSSffa6jkz1pEp1IvS3Wd8BpAZIWgQ8xMqiGwj9/AbwEfbrgsSHGyi6 yZkVDWWaXL0tNyv/9FbKBt84/88wxBlfRBuEFLWe5j1pFcr7DIy7+0s88KSpLT3gvLrubQ J0r1E6fGHFWzRYNZQGCIWwiHnaUui4od9R6ExWKRVsVP/lnjilFjW79jn4U/xngAqwyjgF k2mu6uQLtK6Vf9hmEDlvMNs4QdmsA12cXOxvglPs+mdzgZD3DdzI/fi7jh5ybQ== 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 310BB421DC for ; Fri, 16 Feb 2024 20:10:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rb3Fr-0007dg-AE; Fri, 16 Feb 2024 13:48:11 -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 1rateh-0002Mm-Ad for guix-devel@gnu.org; Fri, 16 Feb 2024 03:33:11 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ratef-0005oV-UM for guix-devel@gnu.org; Fri, 16 Feb 2024 03:33:11 -0500 DKIM-Signature: a=rsa-sha256; b=B3vLb1HwjHZMwrP8VPAxqsb+f0BVRavl6x3m2wDi7qruRtzKEQtYjDXrkocdrJMLu1kDI61G35mq+mI+V56+MndwuhphcdbFnNZngzc1SI6zCTTGlLg4UoPMQlfG6skhm4MBEaEJPOMHyee3cPSQZeiKAemHWj2K8gCmN85S1Q0Km+iBzqRs8LS+da/J/YfhH32qYa00Z8ztPlBDw6J5LrsXAfskeCzIjp1Ge+GO2dCkisg/X7HgpujHnDkb93LqLPWUWqr/cFlQ6kUMjcPwS0iSpwQ/hu6LLDLMsrtRX0zqPgB/vqvBIqAp4lJbczN01aEfKtvuVWuodnycNITJjw==; s=purelymail2; d=lunabee.space; v=1; bh=mQACgbR+r15uyO2vJzXUcrcDgpO+McU2+q6H+uAGKec=; h=Received:Subject:From:To; DKIM-Signature: a=rsa-sha256; b=HylaUs5k+d7G6NErsZs5pBFJTq6sew70sloh1+v1I8eOsP+gy+bkarXo7EftHvGIVO9Cct0Dsy3HC69qvgGe/viONxHFutAxnW/hj++KilXOTEFzSuA9/rnXk1HhonaDDfHHUkYHIFl0WAEV8odQOVeVBKUBMvYSqszAuaS6txQ/tw6pwkdw/2+GB8rA1YPiL/FoDsFh1FgSQuo37Vc7YNUbxhZJdnQljkhRuck+SAWNsdPad+FL8MxFu1t7eZuWmUfYMIzOZLURIEREuv6hTS0m5xzEdnWbtUV0KJjZBZP4z8jw2Fr/XO4DlBwc//liNTy9osnq4ju5qH/BEvMg7Q==; s=purelymail2; d=purelymail.com; v=1; bh=mQACgbR+r15uyO2vJzXUcrcDgpO+McU2+q6H+uAGKec=; h=Feedback-ID:Received:Subject:From:To; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: guix-devel@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -491104813; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 16 Feb 2024 08:33:03 +0000 (UTC) Message-ID: <118b8271dc53b5d0e5f245fac57181fed0db86da.camel@lunabee.space> Subject: Re: [RFC] proposal for refactoring bootloaders From: Lilah Tascheter To: guix-devel@gnu.org Cc: Hilton Chain Date: Fri, 16 Feb 2024 02:33:02 -0600 In-Reply-To: <3cf16a155c1742eff056fc1dc3e0c31366e677ba.camel@lunabee.space> References: <3cf16a155c1742eff056fc1dc3e0c31366e677ba.camel@lunabee.space> Organization: Dissociation for Heresiographal Computation Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 Received-SPF: pass client-ip=34.202.193.197; envelope-from=lilah@lunabee.space; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 16 Feb 2024 13:48:07 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.88 X-Spam-Score: 1.88 X-Migadu-Queue-Id: 310BB421DC X-Migadu-Scanner: mx13.migadu.com X-TUID: PJbz/Gu/CI2c one more quick change that I've realized will be necessary: add a bootloader-targets field to boot-parameters. some bootloaders would need target info to know where to install config files, and reinstall-bootloader doesn't have access to the operating-system record. rollbacks to generations pre-field addition shouldn't be an issue with this either, as existing bootloaders (sans depthcharge?) do just fine without targets. all in all, bootloader-installer and bootloader-config-file-installer would be procedures that return gexps, with the following signatures: * (installer entries #:key bootcfg mount-offset generation old-entries store-crypto-devices store-directory-prefix locale) * (config-file-installer entries #:key package targets mount-offset generation old-entries store-crypto-devices store-directory-prefix locale) mount-offset is the current target, and old-entries becomes an alist with generation numbers. - lilah