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 46E8C15802C for ; Wed, 18 Dec 2024 14:18:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03F8CE086F; Wed, 18 Dec 2024 14:18:16 +0000 (UTC) Received: from gw3.antarean.org (gw3.antarean.org [84.247.13.64]) by pigeon.gentoo.org (Postfix) with ESMTP id 0C61FE07BA for ; Wed, 18 Dec 2024 14:18:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gw3.antarean.org (Postfix) with ESMTP id 4YCwl73Q8tzNnC8 for ; Wed, 18 Dec 2024 15:18:27 +0100 (CET) X-Virus-Scanned: amavis at antarean.org Received: from gw3.antarean.org ([127.0.0.1]) by localhost (gw3.antarean.org [127.0.0.1]) (amavis, port 10024) with ESMTP id K_rCPKxyeIn9 for ; Wed, 18 Dec 2024 15:18:27 +0100 (CET) Received: from mailstore1.adm.antarean.org (localhost [127.0.0.1]) by gw3.antarean.org (Postfix) with ESMTP id 4YCwl72mRHzNkVs for ; Wed, 18 Dec 2024 15:18:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailstore1.adm.antarean.org (Postfix) with ESMTP id 4YCwkt0Y3Cz17 for ; Wed, 18 Dec 2024 14:18:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at antarean.org Received: from mailstore1.adm.antarean.org ([127.0.0.1]) by localhost (mailstore1.adm.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t0vkF02Lbpt1 for ; Wed, 18 Dec 2024 14:18:13 +0000 (UTC) Received: from c52aeb976e0c (web2.adm.antarean.org [10.55.16.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailstore1.adm.antarean.org (Postfix) with ESMTPSA id 4YCwks3S8jz15 for ; Wed, 18 Dec 2024 14:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=antarean.org; s=default; t=1734531493; bh=RoIMb3n7nofMfKFuf9olTU9A1G3OzFbDmRXvDY0emME=; h=From:In-Reply-To:References:List-Id:To:Subject:Date; b=WDtJ78qkxBJL6nWD/DpKxcaZ3hFKw8NRUXCjj+d6eGHY6MsOHjt8jeXthrQpiRKh6 7uYmj+CPKywlwjxH2cS6wwTgEKxjVCs1KGlu5Ih41STLchyDxswqqdPHXvNoSr871p X9DvG494GuI37HClEuBgqO8Vjm0fpSNuMT4PejqM= User-Agent: EGroupware API 23.1.005 From: Joost Roeleveld X-Priority: 3 X-Mailer: EGroupware-Mail In-Reply-To: <86bjx917ge.fsf@gentoo.org> References: <86bjx917ge.fsf@gentoo.org> List-Id: Gentoo Linux mail To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Fun with systemd-boot Message-ID: <20241218141813.EGroupware.oYb6_eQwwTdTPWVcV-ygz97@_> Date: Wed, 18 Dec 2024 14:18:13 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes 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-Transfer-Encoding: 8bit X-Archives-Salt: feae6317-18f7-4545-8b5d-24b8e9bfb3af X-Archives-Hash: 766e536f22ed11358aef3b05a03814c6 ----------------------- Original message ----------------------- From: Alan Mackenzie To: gentoo-user@lists.gentoo.org Date: Wed, 18 Dec 2024 14:41:00 +0100 ---------------------------------------------------------------- > Hello, Arsen. > > On Wed, Dec 18, 2024 at 13:50:09 +0100, Arsen Arsenović wrote: >> 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]. > > No, I don't need to learn a new abstruse command (which might do anything > apart from its prime function) when cp works 100%. > >> > 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= >> 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. > > I have never knowingly mounted anything on /efi. Even if it was by > accident, somehow, I certainly wouldn't have done it on both my old and > new machines. And why the partition on nvme1? > >> You should have one ESP mounted at any time, and mounted at /efi. The >> rest should work fine. > > I've got /dev/nvme0n1p1 mounted on /boot. That should work. > >> > 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. > > That's possible, though I don't remember now. > >> 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. > > Thanks! Though just /boot should work. > >> WRT changing UEFI settings, this is a necessity for UEFI boot - >> grub-install does the same thing. > > I've always set the boot devices in the BIOS settings - including an > entry for my DVD device, enabling me to install Gentoo. :-) > >> > 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? > > I mount an EFI partition on /boot, along with several LVM partitions on / > and subdirectories. I install kernels with cp from > /usr/src/linux-x.y.z-gentoo/arch/x86/boot/bzImage to /boot/EFI/gentoo/, > with a suitable new name. Then I add a new configuration file for the > new kernel in /boot/loader/Entries. For sys-boot/refind: # ls /boot/EFI/Gentoo/ gentoo_6_6_62.efi I include the initramfs and commandline into the kernel image. But you can specify initrd seperately if needed by adding extra menu-entries. -- Joost