From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 136C015802C for ; Wed, 18 Dec 2024 15:58:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F657E0856; Wed, 18 Dec 2024 15:58:45 +0000 (UTC) Received: from weasel.tulip.relay.mailchannels.net (weasel.tulip.relay.mailchannels.net [23.83.218.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD5B9E0819 for ; Wed, 18 Dec 2024 15:58:43 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DF4D081566 for ; Wed, 18 Dec 2024 15:58:40 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1734537520; a=rsa-sha256; cv=none; b=nPjSt05P8tJUkk7Hoi7xudWOdYdmSVKmUYM1gC5Qj8YWiKuaeQcIYbE+Au7D3pz/0cXLxd ZGbZ/e/fZVlqFj0iNYwk4t7N0wHOnrvFolmsi3ZP2f43Df78jnMij9jKUTDrchS2+kmCCF 8x3wT72DFOv3NMINGsfTgK3agTxqCKBFzEYfT/U9tWuoUse2M7H1iW7MHE1r1lSZ61kwNf Re10OyGXP5D6aMTBEUIEfejmx9enVn0p/YdrgFsz/ndgp56/iPIuuXTAPCNU+YiZJJUGgR kuVmU7uVu/EwXLNG67AaXbDYs4CAhk9lmqgeYxwqbs7snxFYgo1DgY/L8SSMbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1734537520; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=GsVQvvOM61FqADRIEraNiYxbGZcNdWNIjRJWW+qTgSY=; b=ZUkO+vLW8fFH+50xBH8hXdBuRSajSva71nVQ+JGkc+9RmvitA2AZuDJnLyGwZRZeGEL3RX vwx0sThPEQ4q3cbcIkemXk9OckXYZ/bE1/f6ucO/11Z27pbv76TqoE8vVVUSHGzvxO2eT+ 8MQPGs7TdDJkhw3tSFA3/MsncdVxrt5aJg6u9eDNPYT6J150K8G5mGljES5Pypy7JvhLFY GixDiz6vezMhoxFidaDt8WhxzYboTyetPQDgozrdE1htQOHSNeTjudVLBHEesv40sNkPQx aZWqrIVeAW/z3ZxMA4/KcHy24Q062k9cFSJ+wWHhsogzR+jGAoKfWR0FO3clxA== ARC-Authentication-Results: i=1; rspamd-75d677f4fc-gt2vv; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Quick-Wiry: 725272505d5eb504_1734537520488_3624374777 X-MC-Loop-Signature: 1734537520488:910942911 X-MC-Ingress-Time: 1734537520488 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.101.209.155 (trex/7.0.2); Wed, 18 Dec 2024 15:58:40 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id 7D72C1E0008 for ; Wed, 18 Dec 2024 15:58:37 +0000 (GMT) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Fun with systemd-boot Date: Wed, 18 Dec 2024 15:58:14 +0000 Message-ID: <2293940.iZASKD2KPV@rogueboard> In-Reply-To: <3620457.iIbC2pHGDl@cube> References: <3620457.iIbC2pHGDl@cube> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1990228.PYKUYFuaPT"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <173453751686.3597426.6369136534058572123@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Server: mailclean11 X-Rspamd-Queue-Id: 7D72C1E0008 X-Rspamd-Action: no action X-Spamd-Result: default: False [-1.51 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; FROM_HAS_DN(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_DKIM_NA(0.00)[]; NEURAL_HAM(-0.00)[-0.936]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+mx]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Archives-Salt: 0c5b62cf-4257-4cc9-a245-49ed13d1f745 X-Archives-Hash: dd677189814c7d305d89fd34d5c3d121 --nextPart1990228.PYKUYFuaPT Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Fun with systemd-boot Date: Wed, 18 Dec 2024 15:58:14 +0000 Message-ID: <2293940.iZASKD2KPV@rogueboard> In-Reply-To: <3620457.iIbC2pHGDl@cube> References: <3620457.iIbC2pHGDl@cube> MIME-Version: 1.0 On Wednesday 18 December 2024 14:30:12 GMT Peter Humphrey wrote: > On Wednesday 18 December 2024 12:13:59 GMT Alan Mackenzie wrote: > > I've been having fun with systemd-boot. >=20 > I've been using bootctl from systemd-utils for some years; ever since I > graduated to an EFI system. I don't follow the wiki because of the result= ing > impenetrable thicket of unpronounceable names and 32-digit hex numbers. > Fine for a distro builder, perhaps, but not for me thank you - especially > as I want a selection of kernels to boot from, which I never did work out > how to achieve following the official advice. >=20 > My method has only one related USE variable: > sys-apps/systemd-utils boot kernel-install >=20 > My EFI partition, unformatted and not mentioned in /etc/fstab, is /dev/ > nvme0n1p1. 0n1p2 is the FAT-32 /boot. > # tree -L 3 /boot > /boot > =E2=94=9C=E2=94=80=E2=94=80 [config files from make install] > =E2=94=9C=E2=94=80=E2=94=80 early_ucode.cpio > =E2=94=9C=E2=94=80=E2=94=80 EFI > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 BOOT > =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 BOOTX64.EFI > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 Linux > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 systemd > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 systemd-bootx64.efi > =E2=94=9C=E2=94=80=E2=94=80 intel-uc.img > =E2=94=9C=E2=94=80=E2=94=80 loader > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 entries > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 06-gentoo-rescue-6.6.= 52.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 07-gentoo-rescue-6.6.= 52.nonet.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 08-gentoo-rescue-6.6.= 62.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 09-gentoo-rescue-6.6.= 62.nonet.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 30-gentoo-6.6.62.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 32-gentoo-6.6.62.nox.= conf > =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 34-gentoo-6.6.62.none= t.conf > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 entries.srel > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 loader.conf > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 random-seed > =E2=94=9C=E2=94=80=E2=94=80 [System.map files from make install] > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-6.6.38-gentoo-rescue > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-6.6.52-gentoo > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-6.6.52-gentoo-rescue > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-6.6.62-gentoo > =E2=94=94=E2=94=80=E2=94=80 vmlinuz-6.6.62-gentoo-rescue >=20 > This is the relevant parts of the kernel make script on my little i5 NUC > box: cd /usr/src/linux > time (make -j4 && make modules_install &&\ > make install && rm -f /boot/*old) > emerge @module-rebuild @x11-module-rebuild > rm -f /boot/early_ucode.cpio.new &&\ > iucode_tool -q -S --write-earlyfw=3D/boot/early_ucode.cpio.new \ > -tr /boot/early_ucode.cpio -tb /lib/firmware/intel-ucode &&\ > mv -v /boot/early_ucode.cpio.new /boot/early_ucode.cpio &&\ > echo Not relevant to the OP, but why don't you build the =C2=B5code blob in the = kernel=20 itself for a simpler life? > Then all I have to do is some simple mmv and sed -i on the files in /boot/ > loader/entries and loader.conf. Also remove obsolete kernels, configs and > maps from /boot. Oh, and bootctl set-default 30-gentoo-6.6.62.conf if it's > a remote machine and I won't be present at boot time. >=20 > --->8 >=20 > > Could somebody perhaps suggest a better boot loader to me? I need to be > > able to chose between several kernels at booting time, but I certainly > > don't want something "refined" like grub - I just need what I thought > > systemd-boot actually was before yesterday. >=20 > That's even worse than what I was suffering until I developed my own syst= em. > > Thanks in advance! >=20 > Hope that helps. If the OP is running a systemd installation then using an ESP FAT32 formatt= ed=20 partition on /efi mountpoint and a XBOOTLDR partition at /boot mountpoint=20 would greatly simplify things and avoid conflicts between what the systemd= =20 bootctl expects to find and wants to do and what the user prefers: https://wiki.gentoo.org/wiki/EFI_System_Partition#Standard_layout On an OpenRC system without GRUB, rEFInd is a good choice, or for a totally= =20 manual approach use the efibootmgr: https://wiki.gentoo.org/wiki/Efibootmgr --nextPart1990228.PYKUYFuaPT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmdi8RYACgkQseqq9sKV ZxmXMg//W4ekNe7Gp7aT1itMMCaTXUb+WjLf0vtUrdPbmpHogurP1+HYhqQOEr+1 0ToGlBtVQn1mhMGImsAOPCZjx+i6qVapcyubSoHNv03qVsogmyKpGIwj0OhIdJ7q 5Vx6Cfvak9WZlhqnKHYyaiq9dHuPC7xofqAbv8jRvR2/h7ps9ez4FhiYwB4znBhu xBsLb+W7Zu5+mZb/NX2LzP7krgX5G3APEZpW8e/Hm3sE2N11lqTnhrUXpAybB9LF c6u3IKG3ZqdF+Z18LZghZ9drfy8bg6VUrYuklc1zWr4WQtk4C5LrnF2no0hLWZYP Z1RQ8JplGEAzFr/wZPja0J4v6FMKJi97YzeVRvmrhdO3wEIAV3JveoSH/b7h1jT5 Ckp+IHxWKAJzCm0SmCavXZKbg9v6IAF+/M4NNv5dFOxILJZX3qRxKg0iEbJGv8Z/ +m11baG3RmMeX2ZtawUrwa25xQ8TMPD1wK9XdvpZ1W75COu+tWgk/BQsfGQjQ+cF nS73NICzg2mW3MXzNYHJk4zrZgzypwBuc/lSXbvliI93U+y4/57nZ8cmCw+yG3Pl YYJzWGVYGr0+8nbreTTjDo/11Ka84Y+Fvw8kCYX/YLvpEHlyZp3K4EzlhQbFp7mH XyObgnKeVusJu0Qrexgl8dZoM9qdSdwVUE6jXYBjMRJzl6jVDS0= =lbzW -----END PGP SIGNATURE----- --nextPart1990228.PYKUYFuaPT--