From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6FnqIx4r02UT7QAAe85BDQ:P1 (envelope-from ) for ; Mon, 19 Feb 2024 11:19:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6FnqIx4r02UT7QAAe85BDQ (envelope-from ) for ; Mon, 19 Feb 2024 11:19:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AHHboSwZ; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708337950; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ae+jtjjZdHA4vshG9LUo7P82uGYptivWRusvbSFmrco=; b=jYsKzbhUyDQwU6ZWAjG5rWWw1U/G4bJhJMMcrI8k+aTBzyuHFdOPRulso/EGIpvKcAoAgy h5nohlxZHJyasSv/UbdIwhE1VsjOb9/zPjufy6zKPrOOvBZPqmEJbZfo5E51x5DElk1YiO zPYsOCjzMdC7hDUnQJej6dQ4z6tuWjOE/az7IHm4Li2wXJkdoWs5yMDhE0mWKYwFXURDtY cshZWhMvhwmzbEel0Nict+pbB4HmFi2HIXK1rzf4dD4+lZNQd2OXNsdHNDvemRvUj4GByD X66vEWotLiizR8u7XFqVNm9cWdMoDoDXBtGxSJRQtJZ4AmC3WR3vBMQQmZ3YOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AHHboSwZ; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708337950; a=rsa-sha256; cv=none; b=nU95M6Y3giUK6Xh5U2y5Bo0PsrNdZJh6Oevwy3lHA1ZFaaz9URAW2W91amTBPIYRZgv0k6 gFzbvasQEQRVY2SJu7Lpd/C4+NFHwiFuGBPK4US/B6rsEK0jQ9J8e03hDiuMNvUrqIi4TQ Epiv/qsAcGk2bsfjZYnTGwJylbjGOa7PAUvhh9RsypApXmz+kxJeUQgq/VHaxMFZqZowV4 uWetXYxBlEO17Bp5W2DyzwPPy4LDqkkdT4faaM0RmMH1RuYru/i4lDgZxEtUUuLzSx5e5X EK+rXlsP/sp8WB+yxweQV4GXqpgUOj5Q3JeFJR/gAueO9wdOhtkTPKlxVGYvzg== 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 155BC58C9E for ; Mon, 19 Feb 2024 11:19:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc0j8-0004lP-Ud; Mon, 19 Feb 2024 05:18:22 -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 1rc0j7-0004ky-6Y for guix-devel@gnu.org; Mon, 19 Feb 2024 05:18:21 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc0j5-0003qJ-Hd for guix-devel@gnu.org; Mon, 19 Feb 2024 05:18:20 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-33d509c5706so399989f8f.2 for ; Mon, 19 Feb 2024 02:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708337897; x=1708942697; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=Ae+jtjjZdHA4vshG9LUo7P82uGYptivWRusvbSFmrco=; b=AHHboSwZKpqneLXDC+GJj9QnHCHJovmylkIg0NTI+EjRkspGJtfO/1/rC9cqkO9wOJ 5W09cXPVtRoZdT9V2uid1/XaW7Sxr5EFI3BFf0EpWGzcg9cwFNOY21taGZuVS98xvqpq WlQFTgucRLC1IXY1kA7Uw4qNo8wKGlLC6LxuFDMNQquuJmlhuFyOqlX/4LV62mVKtINv Px54orNvNpLvrbsnQL8LEhK7raB2mudooZNFg1AdVf9dSYLtk8DYmziLxNqRBHI9Pnhl E0VKAS9L2DJsf9zb6VIgJYF7aLEN46efwh0f80pLJ73hwWrzI+Y8/y+Lx79xPkdUH3iD m0bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708337897; x=1708942697; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ae+jtjjZdHA4vshG9LUo7P82uGYptivWRusvbSFmrco=; b=PDrpoMuWV+rixVxZg+UojRhrNcyCTuHhPAsopXLB32QH3/v61th75xZSW8Yt+3+CPP JJRKpJjeIKFXOW/A63O4G+AIt/My4Tnr0du5oeGX4neGviFiGmiX8TxHuD5ELiTX5TXF /uyJfEzBIMOwLUnmJaKdWiRFjIpY7c4RTa/5SDhFzxEX593Z6qSpmYsqbJ45srs4+Vck W4qjSxeN/pzUbXAiAPOvq34ZSPFsE5d5ubWnFSYPsLkcFC92pE6xZiER5SFMj+Tiv/op 8tZUbXwhXhfWQTbNpSFyQ5/rF8YArfPiwIndV37Uafx5l/qxbyIEAj6dHsh8KTZzFJQ0 5CHA== X-Gm-Message-State: AOJu0YzRV0lQOlm8PQA0jysV3U6B4GPkUT9DKQkcaoROPFIcLwBxFp8y Wt/9nv7q6CKUF8IYlO0NSVD/QpUXLNP2HDdA00/VezYuuRKQShFkp+ufSPvVMdU= X-Google-Smtp-Source: AGHT+IEr6nNFSs2Ne6gq+1Gi2RUBJdRNiZd9N/kkvea2O8r5/XkLdl0jS+zlW4QEAOtFf0rd3zl/aw== X-Received: by 2002:adf:ef8f:0:b0:33d:277b:1ef3 with SMTP id d15-20020adfef8f000000b0033d277b1ef3mr3599951wro.38.1708337897151; Mon, 19 Feb 2024 02:18:17 -0800 (PST) Received: from localhost ([141.226.12.177]) by smtp.gmail.com with ESMTPSA id v4-20020a5d6784000000b0033d39626c27sm5407708wru.76.2024.02.19.02.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:18:16 -0800 (PST) Date: Mon, 19 Feb 2024 12:18:14 +0200 From: Efraim Flashner To: Lilah Tascheter Cc: guix-devel@gnu.org, Hilton Chain Subject: Re: [RFC] proposal for refactoring bootloaders Message-ID: Mail-Followup-To: Lilah Tascheter , guix-devel@gnu.org, Hilton Chain References: <3cf16a155c1742eff056fc1dc3e0c31366e677ba.camel@lunabee.space> <118b8271dc53b5d0e5f245fac57181fed0db86da.camel@lunabee.space> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H6YXp6C1r8h6+Z8X" Content-Disposition: inline In-Reply-To: <118b8271dc53b5d0e5f245fac57181fed0db86da.camel@lunabee.space> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.72 X-Spam-Score: -4.72 X-Migadu-Queue-Id: 155BC58C9E X-Migadu-Scanner: mx11.migadu.com X-TUID: 3J/EsA47MPHg --H6YXp6C1r8h6+Z8X Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 02:33:02AM -0600, Lilah Tascheter wrote: > 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. >=20 > all in all, bootloader-installer and bootloader-config-file-installer > would be procedures that return gexps, with the following signatures: >=20 > * (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) >=20 > mount-offset is the current target, and old-entries becomes an alist with > generation numbers. The current bootloader system started as grub only and then grew more capabilities for other things too. It should be possible to flash u-boot separately and then use grub-efi (or something like it) but it's not currently supported out of the box. I look forward to seeing how this might look. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --H6YXp6C1r8h6+Z8X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmXTKuQACgkQQarn3Mo9 g1E0SQ//dCtEgNn5SZcYqK6JVk2jLet1gbxTYzU2zFM/CAxOrtkinBmN5Mw6UXvo uk+yEp3Pj4KcW8X2TEUOuRkg+g2qQ4NYpo4IA5wBHHzepVjrAPrI/3tpUq6W0hVJ vFgFCtWkpv1n0LMDgKXoyT5o1wt6+GA7NOuwxrixbVVYwW43hvDt8nEooHx2Xp8C a8discxCXUzSS75zo5XfHFRXBVloNxirvESdMC1X2SIl3chQrI4DLQ25y8DfrFhG +/DJf5TwlgGSsq2d02dnixunHail7y0VnNyKIrodt5zULKjughy7klkZmulUsafw 7GNSXunfKi4m8vuF5i8r9X6YaePeflN4qpaV2rGl3z2gV96j6THH/A+VNAdFKcAL DsCnDKW0kBI9KsEvz6xohkhbVe+CZUKdnCwZWKFqMwsL7aiAA3NPDZRXkJZfwHDW Q5rpFGYsNcH23Y0g1r+UlcJa4H+azGXH/asvpp3EY5fOhxvxpWswPo47LETN97Tg dWuthXdJY7ldacr29coMnBfrVLBgiTj6NXKyeNEa4iFzXHu4wT2vh3f8mMp/NBCD T3Qmj/kl02SfsKYSeyNBVct09J+QPLqllQe2FatVFXXvl6B1CjNalfecLjyDIhr6 mPh440ca22oii9wJxGKuNLKIGYYxT4tW88k8Fw6A+Eadql/Y7+A= =kAvF -----END PGP SIGNATURE----- --H6YXp6C1r8h6+Z8X--