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 0ABCC15802C for ; Wed, 18 Dec 2024 12:50:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 864EEE077A; Wed, 18 Dec 2024 12:50:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 5D1D0E079C for ; Wed, 18 Dec 2024 12:50:15 +0000 (UTC) From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= To: Alan Mackenzie Cc: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Fun with systemd-boot In-Reply-To: (Alan Mackenzie's message of "Wed, 18 Dec 2024 12:13:59 +0000") Organization: Gentoo References: User-Agent: mu4e 1.12.7; emacs 31.0.50 Date: Wed, 18 Dec 2024 13:50:09 +0100 Message-ID: <86bjx917ge.fsf@gentoo.org> 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="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: a6e4a734-2b78-4f64-8e16-15f71ccfab1a X-Archives-Hash: 51d4f21604f7532c3ab61905dea3c5a4 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Alan, Alan Mackenzie writes: > Hello, Gentoo. > > I've been having fun with systemd-boot. > > On my new (2024-08) machine, on Friday 2024-12-06, I suddenly noticed > that my /boot partition was empty, I can't remember why I looked at it. > I am quite sure I didn't empty it myself. There then followed a couple > of hours where I restored the boot manager, kernels, and the boot > configuration. Thankfully, it booted again the next time I tried. > > On my old machine, I've been noticing over the past weeks that only two > older kernels have been offered for booting, despite me installing later > kernels to /boot/EFI/gentoo, and configuring them in /boot/loader. You don't need to do that manually, installkernel should handle it for you. You should get installkernel[systemd,systemd-boot]. > It all became clear yesterday and today. bootctl install had > installed itself to /dev/nvme1n1p1 rather than /boot (which I have > mounted on /dev/nvme0n1p1). This would mean you mounted /dev/nvme1n1p1 on /efi: --esp-path=3D Path to the EFI System Partition (ESP). If not specified, /efi/, /boot/, and /boot/efi/ are checked in turn. It is recommended to mount the ESP to /efi/, if possible. You should have one ESP mounted at any time, and mounted at /efi. The rest should work fine. > Both of these partitions are EFI system partitions. It also clogged > up my UEFI boot sequence with lots of extra entries, leaving nvme1 > rather than nvme0 the prime EFI system partition for booting with. UEFI boot order entries are only created as part of 'bootctl install' so this would mean you ran it many times. It only needs to be ran once. To update the bootloader, you'd use 'bootctl update', to add/remove entries you'd use kernel-install. > I've had a look at the manual page for bootctrl. It doesn't mention any > way of specifying which EFI partition will get written to, and doesn't > seem to mention that it changes the UEFI BIOS settings. Or maybe it > does. It's a vague, poor quality manual. That'd be --esp-path. WRT changing UEFI settings, this is a necessity for UEFI boot - grub-install does the same thing. > I don't need all this. Booting should not be fun. It should be boring, > boring, boring. Boring and dependable. > > 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. I suspect your problem lies elsewhere. What partitions are you mounting? How are you installing kernels? Have a lovely day! =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOcEARYKAI8WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZ2LFAV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxEcYXJzZW5AZ2Vu dG9vLm9yZwAKCRBSwpQwHqLEkzKVAP9lT8R6RkQPT6Y2E/nfi2dxxFCcAinqhZwB /Y+0gFrcHQD/eH+n+5GoB2l8mqrj+2MGrWXt//77c/z2a4Wh9nwwgAM= =msBK -----END PGP SIGNATURE----- --=-=-=--