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 BF99D15802C for ; Thu, 19 Dec 2024 11:00:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD4EDE07F1; Thu, 19 Dec 2024 11:00:14 +0000 (UTC) Received: from beige.elm.relay.mailchannels.net (beige.elm.relay.mailchannels.net [23.83.212.16]) (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 D7B54E07D0 for ; Thu, 19 Dec 2024 11:00:13 +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 94AB29033F8 for ; Thu, 19 Dec 2024 11:00:10 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1734606009; a=rsa-sha256; cv=none; b=ClZidA7ajw1691P7HeYilbdDCVM16+h7A6CxjCGdBbTJ7q0FRhPrkbLFo9cE37LtBdIjy6 XljOeyydY7QUS1AbkiRX8SnYfcHNstE3bJO7MkwJcbnnqzAJtQ1eEmoA4SZdvZ3zNSRKht dNtiBEyGD9GNd5aDFHFlFMi3KJJ1vqZZiQtK2BfSrfVb8xahuwyBMJSOlqUM2IWC/BG4e5 NWIYHU5RHTddWMJUDxbEdM+73rZ5VHBiETm2pIr3ZY/E/0xi2orMXxR/PfptvuWa4VkwtY P10lQkHJjDlpUx81pdZgNj45aW3Jtjgmb9GMfdC54xvJyaFKS7NDFOHi5pXxMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1734606009; 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=xQx016Xcr2Lf8wSnknVlKbYBA3jtmB4zn3JBNsPgwZM=; b=OWNWoddowFBsjcBs/VzGKPs85VTbZdWnuduLpAYS2bbPeeOIG3ERUq+MGaUhz2FZSvs887 H5iZfQJC+LyubM/deKX/Z1wke2CHx4zNSj0lll7lkhwlY0Kyrp5bOtBpX1nz/rhjSJZTJr MlPI0SyuNmSrgALH9sQz+bhn/IFQ6sGH+PEn0B0C421Z1H5cb8zhlcEnqk7qSHTj1hmzkw zWJ7fGdqlknq5iXYLVHmGXmnKOkEv2yufmsk/zDirkLhm6uGyX6RNnaK6Y0m/bzErH2Cff 07Un6PP6Xjj/eyOVR7HIlL/COlicJsZdGygxNUT4hnfiPToGMm81oFf2J7+lFg== ARC-Authentication-Results: i=1; rspamd-7d788bbf85-bq7rf; 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-Rock-Skirt: 7819d9505f0b1c69_1734606010025_954617152 X-MC-Loop-Signature: 1734606010025:1489822213 X-MC-Ingress-Time: 1734606010025 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.144.232 (trex/7.0.2); Thu, 19 Dec 2024 11:00:10 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id 214BE1E000E for ; Thu, 19 Dec 2024 11:00:07 +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: Thu, 19 Dec 2024 10:59:54 +0000 Message-ID: <3524144.QJadu78ljV@rogueboard> In-Reply-To: References: <2293940.iZASKD2KPV@rogueboard> 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="nextPart1913931.CQOukoFCf9"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <173460600588.476553.9672355258931744168@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Server: mailclean11 X-Rspamd-Queue-Id: 214BE1E000E 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)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; 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]; NEURAL_SPAM(0.00)[0.320]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_SPF_ALLOW(0.00)[+mx]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Archives-Salt: 554af53f-a20c-470c-ab61-d7dc11262af3 X-Archives-Hash: 82cedbeeab87005b8719500f1ab9c394 --nextPart1913931.CQOukoFCf9 Content-Transfer-Encoding: 7Bit 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: Thu, 19 Dec 2024 10:59:54 +0000 Message-ID: <3524144.QJadu78ljV@rogueboard> In-Reply-To: MIME-Version: 1.0 On Wednesday 18 December 2024 21:31:42 GMT Alan Mackenzie wrote: > Hello, Michael. > > Thanks for the reply. > > On Wed, Dec 18, 2024 at 15:58:14 +0000, Michael wrote: > > On an OpenRC system without GRUB, rEFInd is a good choice, or for a > > totally > > manual approach use the efibootmgr: > > > > https://wiki.gentoo.org/wiki/Efibootmgr > > I got efibootmgr installed on one of my machines. Somebody (tm) should > tell the maintainers that "File or directory not found" is an incomplete > error message. It cost me around an hour till I figured out it was > trying to access files on /dev/sda1 (which I don't have). When you run efibootmgr with no options it accesses the UEFI BIOS menu stored on the MoBo's EEPROM and displays its entries in the terminal. It does not access the disk. When you create an entry it will verify the fs path and kernel image you are adding on the boot menu actually exists on the fs - in this case it will try to read the contents of the FAT32 fs on the disk, but should only access the disk and partition you tell it to access when creating EFI boot menu entries, e.g.: efibootmgr --create --disk /dev/sda --part 1 ... efibootmgr --create --disk /dev/nvme0n1 --part 3 ... It is just a CLI tool to interact with the UEFI firmware API. It is the UEFI firmware itself which is probing block devices, reading and writing on its EEPROM. You'll have to copy your own kernel images on the FAT32 /efi or /boot partition, or use 'make install'. > Also, none of the documentation was explicit in saying that with > efibootmgr, you have to go into the BIOS setup to select the kernel you > want to boot. Nothing wrong with that, but if I'd know first, I wouldn't > have bothered getting it working. (Sorry, it's been a strenuous > evening.) Yes, you can enter the MoBos BIOS menu, if you prefer to, or you can specify/ edit your own preferred order of the UEFI boot menu entries: --bootorder 5,2,4 or you can select which menu entry to boot next into before you reboot: --bootnext 00005 > rEFInd doesn't feel right, somehow. It seems to involve a graphics > screen, and configuring icons in a config file. I just want want to get > the system booted, with a choice of kernels at boot time, and not have > all the overhead of graphics and "flexibility". > > I thought systemd-boot was OK, until it starting emptying my /boot > partition, and booting from a partition other than the one I'd told it > to. Don't we just love software which is clever? > > . It looks like I'm going to have to make some compromises, > somewhere. It's a pity lilo isn't still going. There is sys-boot/elilo available for UEFI systems, but it hasn't been touched for more than 10 years. I've never tried it, but this doesn't mean it won't work as is. There's also syslinux, but you'll need to use efibootmgr (once) to let the UEFI firmware know about the syslinux image. --nextPart1913931.CQOukoFCf9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmdj/KoACgkQseqq9sKV Zxnq6BAA547eOwF4nRrigkBqt0v3dCZFLod45JajH8szqwBdVb20tRizshk4pBG/ odhvLLXjFi7uN6jnyS1AHn5vxtzMSFNauKVNPIaM7091frPXplVGXRsPcvEP3/DZ LbJio0XNVCH6D8ivuas4N4Ovf9h4sIXFJlfpd1zKvSHtLx2MFfMhDmqLGJ041H4N ArYzzvg4ILjeOR1UB2Y0H/DrjlEKKXMC07OuzTJcPQzp7bYJTtxGZ8NzMnB18wDI 8JFHiTxPjHMrsCOxWEQ39b3rc5nicLgzxSu+PkUXWQFt3mg+sXJSQdJtG03G8lcN EcTiyqFiwCvjuda9n7SRPH1ghE2w7Y1SUeOaDp7lxenmTtr/mMIneiuMDyx4ZEeu EbC5pdi4sfI+D74mJ4P7tzpkxhlra3vViSmgIrm7t0c02s35oQw6+hT52lgMIgRs hsoUFzyrh2jKchWe438IDvS3XyYlDA/1RLgiy0BjTPDvzdQKcFfV+sT9vB1BVgCJ vlrT+S+uMaiRPWeNIZkEaxYtJozr295+dJ9gx7tPTIuAcboRTIJOACH5t/0qMPRF o2gUwXsW75QEzOtiU2+q6RNqJeSE6gjM6wIRT2dxOjAvwP4Y5IRJwRQI5Vyl2Uf1 7Ax45kH7JvOZodREKf3J311ByMWswugkDcz/IEMVFWjCFjWmfgQ= =c9jr -----END PGP SIGNATURE----- --nextPart1913931.CQOukoFCf9--