From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qP/9CYK8smb4+gAA62LTzQ:P1 (envelope-from ) for ; Wed, 07 Aug 2024 00:14:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qP/9CYK8smb4+gAA62LTzQ (envelope-from ) for ; Wed, 07 Aug 2024 02:14:58 +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=d4+B9NLs; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b=VBZ2FGRj; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=Fc1x2kie; 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=1722989698; 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=2L0WgXU8TKlg4VeOKHQ/XJPzAwWLjvCNhaSKNfXE+6Y=; b=VNVKsAi2l3huJkhyX1FVEkuSxOvdWlLpD5UClsUuFN9pcAPs4xg6dfzySVwUdnYc8SHAlg DJ3N/oNSQK7lCRGM5W2IR7+KiT9esaUKqdP26SHDGnXSzs8DGwdZuyRmbRWs1HUV8hgQhB Pp0OBMmZz40VasZSKIQScPXUvktDRVeUrDZQOoVjgrNxSJIYipgxrfd3QW2PQWHC3uZWi7 yJUnhvN3YjQCCn7KRaL2BQ9kRf6kg/F5XZ359N/fCZw9T+dmuzNKXa1LWWe0NHRXUJJGLY eK09eHqS+gOMknLaKG7bP6CTS+PF7o8YXBkmX0naG8j+Sojm0fY6OOcJtma/yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722989698; a=rsa-sha256; cv=none; b=MW5eT983XzdvGs3L0n0kyLsOxMR1sCxrO8A+xzwK6NiAIqL84LvjHkb/4VsknNpEgpufdB cMb0k2bfjwNWmY2zT3g3gMXlgiit41GJ/Cj2JpVtZWez45nl5azxhnCuZUSeHimGyEaGxU Dy3TW/6ZF4Sz8lXYRepLhgws1xII+Sr8gtvaYHjANoLrT/nMWgXkOS5XHWkDsHLohVBx1b D26yKTsMkQOh8QmXv9tMfmWnAfWF1Kfhcy1U4zQgigNLLMrwpQ/LCWVqH8H2RLzFG96j/U C4fRHmc6ijDDc1ghXQiJ42O00HUuPAsclncXG5vngr7sK0Qpsmgy7S4OVhSApA== 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=d4+B9NLs; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b=VBZ2FGRj; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=Fc1x2kie; 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" 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 D4E1D64EF9 for ; Wed, 07 Aug 2024 02:14:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbUKB-00009Y-CR; Tue, 06 Aug 2024 20:14: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 1sbUK9-0008Qn-3w for guix-patches@gnu.org; Tue, 06 Aug 2024 20:14:41 -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 1sbUK8-0002dC-QX; Tue, 06 Aug 2024 20:14:40 -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=2L0WgXU8TKlg4VeOKHQ/XJPzAwWLjvCNhaSKNfXE+6Y=; b=d4+B9NLstO+r9xVxBs+z/FZ2othj207FY82abyJ1KCQQI/GiFhKTLgaf18rLUIEuDXl0Kqgl+DTcgDKMdJtvgk0z2kq/V90YBGgVECnLfb+htYH/TjYOTSpw67xY/GG1cyrvsIKk+aYIWSv9SDAtRlVeooUHGiQ9ZGu8hIcXhE6bAsSr9hWBQWbqBzGnomUidNe3cIAoctB5oauH9uJqwl5xwM6tKmUO1f2Us9JgLYrPO7zdMtf6NXjMdMcjnUNWo7nGZDOiYiYC81+/IFSaOndqe08eY6u6xhV4Ng2YSOXQqWpTfQKfkA0aLJvnc0MiU7b76pCDEzqr1pNx3u1HVg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbUKU-00071l-Px; Tue, 06 Aug 2024 20:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72457] [PATCH v5 12/15] gnu: system: Update examples. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: pelzflorian@pelzflorian.de, ludo@gnu.org, matt@excalamus.com, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 07 Aug 2024 00:15:02 +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 , Florian Pelz , Ludovic Court??s , Matthew Trzcinski , Maxim Cournoyer X-Debbugs-Original-Xcc: Florian Pelz , Ludovic Court??s , Matthew Trzcinski , Maxim Cournoyer Received: via spool by 72457-submit@debbugs.gnu.org id=B72457.172298965326904 (code B ref 72457); Wed, 07 Aug 2024 00:15:02 +0000 Received: (at 72457) by debbugs.gnu.org; 7 Aug 2024 00:14:13 +0000 Received: from localhost ([127.0.0.1]:33319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbUJg-0006zj-8H for submit@debbugs.gnu.org; Tue, 06 Aug 2024 20:14:12 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:33166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbUJe-0006xt-An for 72457@debbugs.gnu.org; Tue, 06 Aug 2024 20:14:11 -0400 DKIM-Signature: a=rsa-sha256; b=VBZ2FGRj3LxkZtV5V7ka4rq8STfpCRnRsE8o5+uWq2uByIwtXr213bMCrc1sCkb92LMWw9k/cBajh7uoVbmr6FIQuCcDsYJV7LpgtZdO2AVgVZ/d7z7FHWwwEkkkHau/8u0n2MG+QfWal75Aan6GAD3jO7pCKFemtwRVXB1kDeBht2mT4R0v++1YN5kUJu3/iu1txSj2ZR8x/pSa2LX68wjcUfYJMDGfCY1cx3snuEcbDyhpnC14Is8Cico7CsvWPnenvH1/55k5zeyKHeQ3WcIN7TJuMybxhL/o6uu0POQpX6W6YswvKCYYs8MeEgfD5D67La7Ad7voIs3+Lwe6KQ==; s=purelymail3; d=lunabee.space; v=1; bh=zb7HPmkptVp0Va/5kW9G9MABNmNK8JtgYqJZZQ8Xi7k=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=Fc1x2kieWNpOiMHzw8ke6UNQUJFIPAdlsJztvR+f83FDTkntWFB9SGd2NeryOx71gxTnWyyxxHbny6l1CvVZW/qoWvUFssIE2lUB4GqBJWDa3sNvONqgk8bRUjoGyvtYR9VkFT0vflVOrEyG8D2V/s2tURSr2gHP42P3qKfzmRvMZjJGyTxoC721S3iHKVSubBapXTSnctNnbTkkjd4ZA4EAR8oFdbnARxedU29doEfarx3dIxg9UsBeiNvCyxuH0AuiwOVKTr2j/EK/OhdHMH+F9Jb6W/3pzh+tbboWHStBInbDCvS+WZPu4r7508ed+t2qQ5YcxOqAbC7kNJn8+w==; s=purelymail3; d=purelymail.com; v=1; bh=zb7HPmkptVp0Va/5kW9G9MABNmNK8JtgYqJZZQ8Xi7k=; 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 -1661201426; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 07 Aug 2024 00:13:17 +0000 (UTC) Date: Tue, 6 Aug 2024 19:11:25 -0500 Message-ID: <3ba36c6fa8e419e45e92e1a80fd9ff056cddba37.1722989488.git.lilah@lunabee.space> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.44 X-Spam-Score: -2.44 X-Migadu-Queue-Id: D4E1D64EF9 X-Migadu-Scanner: mx11.migadu.com X-TUID: a0eSfohvFHFW * gnu/system/examples/asus-c201.tmpl (bootloader): Use new depthcharge bootloader name scheme and update to new target system. * gnu/system/examples/bare-bones.tmpl (bootloader), gnu/system/examples/bare-hurd.tmpl (bootloader), gnu/system/examples/beaglebone-black.tmpl (bootloader), gnu/system/examples/desktop.tmpl (bootloader), gnu/system/examples/lightweight-desktop.tmpl (bootloader), gnu/system/examples/plasma.tmpl (bootloader), gnu/system/examples/raspberry-pi-64-nfs-root.tmpl (bootloader), gnu/system/examples/raspberry-pi-64.tmpl (bootloader): Use new target sys= tem. * gnu/system/examples/docker-image.tmpl (bootloader): Delete. * gnu/system/examples/vm-image.tmpl (bootloader): Use auto image target. Change-Id: I3675f17ae9cd94cff99328762600fb4e491bc9f2 --- gnu/system/examples/asus-c201.tmpl | 6 +++-- gnu/system/examples/bare-bones.tmpl | 7 ++++-- gnu/system/examples/bare-hurd.tmpl | 4 +++- gnu/system/examples/beaglebone-black.tmpl | 6 +++-- gnu/system/examples/desktop.tmpl | 4 +++- gnu/system/examples/docker-image.tmpl | 6 ++--- gnu/system/examples/lightweight-desktop.tmpl | 4 +++- gnu/system/examples/plasma.tmpl | 4 +++- .../examples/raspberry-pi-64-nfs-root.tmpl | 23 ++++++++++++------- gnu/system/examples/raspberry-pi-64.tmpl | 18 ++++++++------- gnu/system/examples/vm-image.tmpl | 5 ++-- 11 files changed, 54 insertions(+), 33 deletions(-) diff --git a/gnu/system/examples/asus-c201.tmpl b/gnu/system/examples/asus-= c201.tmpl index 019111c167..eec185eebf 100644 --- a/gnu/system/examples/asus-c201.tmpl +++ b/gnu/system/examples/asus-c201.tmpl @@ -14,8 +14,10 @@ ;; Assuming /dev/mmcblk0p1 is the kernel partition, and ;; "my-root" is the label of the target root file system. (bootloader (bootloader-configuration - (bootloader depthcharge-bootloader) - (targets '("/dev/mmcblk0p1")))) + (bootloader depthcharge-veyron-speedy-bootloader) + (targets (list (bootloader-target + (type 'part) + (device "/dev/mmcblk0p1")))))) =20 ;; The ASUS C201PA requires a very particular kernel to boot, ;; as well as the following arguments. diff --git a/gnu/system/examples/bare-bones.tmpl b/gnu/system/examples/bare= -bones.tmpl index 7b6a4b09b0..9eed05f2e0 100644 --- a/gnu/system/examples/bare-bones.tmpl +++ b/gnu/system/examples/bare-bones.tmpl @@ -13,10 +13,13 @@ =20 ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the ;; target hard disk, and "my-root" is the label of the target - ;; root file system. + ;; root file system. If you're just building an image, the + ;; 'targets' field may be omitted. (bootloader (bootloader-configuration (bootloader grub-bootloader) - (targets '("/dev/sdX")))) + (targets (list (bootloader-target + (type 'disk) + (device "/dev/sdX")))))) ;; It's fitting to support the equally bare bones =E2=80=98-nographic=E2= =80=99 ;; QEMU option, which also nicely sidesteps forcing QWERTY. (kernel-arguments (list "console=3DttyS0,115200")) diff --git a/gnu/system/examples/bare-hurd.tmpl b/gnu/system/examples/bare-= hurd.tmpl index 463c7ee798..8dd700cd9d 100644 --- a/gnu/system/examples/bare-hurd.tmpl +++ b/gnu/system/examples/bare-hurd.tmpl @@ -32,7 +32,9 @@ (inherit %hurd-default-operating-system) (bootloader (bootloader-configuration (bootloader grub-minimal-bootloader) - (targets '("/dev/sdX")))) + (targets (list (bootloader-target + (type 'disk) + (device "/dev/sdX")))))) (file-systems (cons (file-system (device (file-system-label "my-root")) (mount-point "/") diff --git a/gnu/system/examples/beaglebone-black.tmpl b/gnu/system/example= s/beaglebone-black.tmpl index 18bbb2723c..99963ef2fe 100644 --- a/gnu/system/examples/beaglebone-black.tmpl +++ b/gnu/system/examples/beaglebone-black.tmpl @@ -11,11 +11,13 @@ (timezone "Europe/Berlin") (locale "en_US.utf8") =20 - ;; Assuming /dev/mmcblk1 is the eMMC, and "my-root" is + ;; Assuming /dev/mmcblk1 is the eMMC. and "my-root" is ;; the label of the target root file system. (bootloader (bootloader-configuration (bootloader u-boot-beaglebone-black-bootloader) - (targets '("/dev/mmcblk1")))) + (targets (list (bootloader-target + (type 'disk) + (device "/dev/mmcblk1")))))) =20 ;; This module is required to mount the SD card. (initrd-modules (cons "omap_hsmmc" %base-initrd-modules)) diff --git a/gnu/system/examples/desktop.tmpl b/gnu/system/examples/desktop= .tmpl index 2d65f22294..30dbdeea31 100644 --- a/gnu/system/examples/desktop.tmpl +++ b/gnu/system/examples/desktop.tmpl @@ -20,7 +20,9 @@ ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) - (targets '("/boot/efi")) + (targets (list (bootloader-target + (type 'esp) + (path "/boot/efi")))) (keyboard-layout keyboard-layout))) =20 ;; Specify a mapped device for the encrypted root partition. diff --git a/gnu/system/examples/docker-image.tmpl b/gnu/system/examples/do= cker-image.tmpl index 7123917af4..6d3114a0bc 100644 --- a/gnu/system/examples/docker-image.tmpl +++ b/gnu/system/examples/docker-image.tmpl @@ -9,6 +9,8 @@ (timezone "Europe/Berlin") (locale "en_US.utf8") =20 + ;; Bootloader can be left blank! + ;; This is where user accounts are specified. The "root" account is ;; implicit, and is initially created with the empty password. (users (cons (user-account @@ -34,10 +36,6 @@ ;; similar services for us. =20 ;; This will be ignored. - (bootloader (bootloader-configuration - (bootloader grub-bootloader) - (targets '("does-not-matter")))) - ;; This will be ignored, too. (file-systems (list (file-system (device "does-not-matter") (mount-point "/") diff --git a/gnu/system/examples/lightweight-desktop.tmpl b/gnu/system/exam= ples/lightweight-desktop.tmpl index c061284ba8..0964238cb0 100644 --- a/gnu/system/examples/lightweight-desktop.tmpl +++ b/gnu/system/examples/lightweight-desktop.tmpl @@ -17,7 +17,9 @@ ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) - (targets '("/boot/efi")))) + (targets (list (bootloader-target + (type 'esp) + (path "/boot/efi")))))) =20 ;; Assume the target root file system is labelled "my-root", ;; and the EFI System Partition has UUID 1234-ABCD. diff --git a/gnu/system/examples/plasma.tmpl b/gnu/system/examples/plasma.t= mpl index c3850ffe37..a81916ffe9 100644 --- a/gnu/system/examples/plasma.tmpl +++ b/gnu/system/examples/plasma.tmpl @@ -15,7 +15,9 @@ ;; is the label of the target root file system. (bootloader (bootloader-configuration (bootloader grub-bootloader) - (targets (list "/dev/sdX")))) + (targets (list (bootloader-target + (type 'disk) + (device "/dev/sdX")))))) =20 (file-systems (cons (file-system (device "my-root") diff --git a/gnu/system/examples/raspberry-pi-64-nfs-root.tmpl b/gnu/system= /examples/raspberry-pi-64-nfs-root.tmpl index 1baca02491..85476854f3 100644 --- a/gnu/system/examples/raspberry-pi-64-nfs-root.tmpl +++ b/gnu/system/examples/raspberry-pi-64-nfs-root.tmpl @@ -25,14 +25,21 @@ (operating-system (host-name "raspberrypi-guix") (timezone "Europe/Berlin") - (bootloader (bootloader-configuration - (bootloader grub-efi-bootloader-chain-raspi-64) - (targets (list "/boot/efi")) - (theme (grub-theme - (resolution '(1920 . 1080)) - (image (file-append - %artwork-repository - "/grub/GuixSD-fully-black-16-9.svg")))))) + (bootloader (list (bootloader-configuration + (bootloader u-boot-rpi-bootloader) + (targets (list (bootloader-target + (type 'install) + (path "/boot/efi"))))) + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list (bootloader-target + (type 'esp) + (path "/boot/efi")))) + (theme + (grub-theme + (resolution '(1920 . 1080)) + (image (file-append %artwork-repository + "/grub/GuixSD-fully-black-16-9.svg"))= ))))) (kernel-arguments '("ip=3Ddhcp")) (kernel (customize-linux #:linux linux-libre-arm64-generic #:extra-version "arm64-generic-netboot" diff --git a/gnu/system/examples/raspberry-pi-64.tmpl b/gnu/system/examples= /raspberry-pi-64.tmpl index 414d8ac7a5..d5b90b9705 100644 --- a/gnu/system/examples/raspberry-pi-64.tmpl +++ b/gnu/system/examples/raspberry-pi-64.tmpl @@ -24,14 +24,16 @@ (operating-system (host-name "raspberrypi-guix") (timezone "Europe/Berlin") - (bootloader (bootloader-configuration - (bootloader grub-efi-bootloader-chain-raspi-64) - (targets (list "/boot/efi")) - (theme (grub-theme - (resolution '(1920 . 1080)) - (image (file-append - %artwork-repository - "/grub/GuixSD-fully-black-16-9.svg")))))) + (bootloader (list (bootloader-configuration + (bootloader u-boot-rpi-bootloader) + (targets (list (bootloader-target + (type 'install) + (path "/boot/efi")))) + (theme + (grub-theme + (resolution '(1920 . 1080)) + (image (file-append %artwork-repository + "/grub/GuixSD-fully-black-16-9.svg"))= ))))) (kernel (customize-linux #:linux linux-libre-arm64-generic ;; It is possible to use a specific defconfig ;; file, for example the "bcmrpi3_defconfig" = with diff --git a/gnu/system/examples/vm-image.tmpl b/gnu/system/examples/vm-ima= ge.tmpl index 589de493b1..050c0bb971 100644 --- a/gnu/system/examples/vm-image.tmpl +++ b/gnu/system/examples/vm-image.tmpl @@ -38,11 +38,10 @@ accounts.\x1b[0m =20 (firmware '()) =20 - ;; Below we assume /dev/vda is the VM's hard disk. - ;; Adjust as needed. + ;; Images automatically get the 'root, 'esp, and 'disk targets configure= d as + ;; needed. (bootloader (bootloader-configuration (bootloader grub-bootloader) - (targets '("/dev/vda")) (terminal-outputs '(console)))) (file-systems (cons (file-system (mount-point "/") --=20 2.45.2