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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 77038138359 for ; Fri, 3 Jul 2020 08:37:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30B29E088B; Fri, 3 Jul 2020 08:37:09 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6B34E086C for ; Fri, 3 Jul 2020 08:37:08 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 4BC19651DF6B for ; Fri, 3 Jul 2020 09:37:05 +0100 (BST) X-ASG-Debug-ID: 1593765424-0554133caaa33950001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id bFF1R47HLcbNLWaJ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 03 Jul 2020 09:37:04 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id C054DC1DC63 for ; Fri, 3 Jul 2020 09:37:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1593765424; bh=EaZGpHMo0ALw4wc2blBQ5gdZcLzx0JfPNa48vCn8lj8=; h=From:To:Subject; b=LWjMvlWZTWCldAULqCLwbARq0wrl14JZ77sjyv/eMujmSUufzX7XDjvETkbavNJT/ v6rjnZDMBpzWHnf1VX8HUtSSY3Fo7DHXPQtvf34ZpXUkESpMwKM/n/JQeL2L3G7rmt oSj8TSbPODGmPFl3dWmgGVmQc9haQTzXpqLMv320= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] EFI booting problem - understanding it Date: Fri, 03 Jul 2020 09:36:48 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] EFI booting problem - understanding it Message-ID: <5616505.lOV4Wx5bFT@lenovo.localdomain> In-Reply-To: References: <2538456.mvXUDI8C0e@peak> 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="nextPart4571318.31r3eYUQgx"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200703083704.1829884.52344@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1593765424 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 3430 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.82936 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: d80d807e-5aca-4a13-ba73-6078e17dd099 X-Archives-Hash: 4c874b6f5d1d22edf80662816f3370fe --nextPart4571318.31r3eYUQgx Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Friday, 3 July 2020 03:05:34 BST Andrew Udvare wrote: > Morning all, >=20 > I'm trying to set the default boot entry via bootctl or efibootmgr. I kno= w I > can set it directly by pressing D at the boot selection screen, and the > system does boot properly; I just want to understand the setup a bit > better. I don't have the rest of systemd: this is an openrc box. >=20 > # tree -L 3 /boot > /boot > =E2=94=9C=E2=94=80=E2=94=80 config-5.4.48-gentoo > =E2=94=9C=E2=94=80=E2=94=80 config-5.4.48-gentoo-rescue > =E2=94=9C=E2=94=80=E2=94=80 config-5.7.6-gentoo > =E2=94=9C=E2=94=80=E2=94=80 config-5.7.7-gentoo > =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=9C=E2=94=80=E2=94=80 Microsoft > =E2=94=82 =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 Recovery > =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 08-gentoo-5.4.48-resc= ue.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 09-gentoo-5.4.48-resc= ue.nonet.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 30-gentoo-5.7.7.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 32-gentoo-5.7.7.nox.c= onf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 34-gentoo-5.7.7.nonet= =2Econf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 40-gentoo-5.4.48.conf > =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 42-gentoo-5.4.48.nox.= conf > =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 44-gentoo-5.4.48.none= t.conf > =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-5.4.48-gentoo > =E2=94=9C=E2=94=80=E2=94=80 System.map-5.4.48-gentoo-rescue > =E2=94=9C=E2=94=80=E2=94=80 System.map-5.7.6-gentoo > =E2=94=9C=E2=94=80=E2=94=80 System.map-5.7.7-gentoo > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-5.4.48-gentoo > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-5.4.48-gentoo-rescue > =E2=94=9C=E2=94=80=E2=94=80 vmlinuz-5.7.6-gentoo > =E2=94=94=E2=94=80=E2=94=80 vmlinuz-5.7.7-gentoo >=20 > # bootctl status > --->8 > Default Boot Loader Entry: > title: Gentoo 5.4.48 (No network) > id: 44-gentoo-5.4.48.nonet.conf > --->8 >=20 > 44-gentoo-5.4.48.nonet.conf is the last entry in /boot/loader/entries. >=20 > Man bootctl says: > set-default ID, set-oneshot ID > Sets the default boot loader entry. Takes a single boot loader entry= ID > string as argument... >=20 > But then, > # bootctl set-default 30-gentoo-5.7.7.conf > Failed to update EFI variable: Invalid argument >=20 > ...in spite of this: > # cat /boot/loader/entries/30-gentoo-5.7.7.conf > title Gentoo 5.7.7 > version 5.7.7-gentoo > linux vmlinuz-5.7.7-gentoo > initrd=3Dintel-uc.img > options root=3D/dev/nvme0n1p4 net.ifnames=3D0 raid=3Dnoautodetect >=20 > ...and this: > # mount | grep efi > efivarfs on /sys/firmware/efi/efivars type efivarfs > (rw,nosuid,nodev,noexec,relatime) >=20 > I've also tried telling efibootmgr to set the default. >=20 > # efibootmgr > BootNext: 0007 > BootCurrent: 0007 > Timeout: 2 seconds > BootOrder: 000B,0007,0006,0000,000C,000D > Boot0000* Windows Boot Manager > Boot0006* UEFI OS > Boot0007* Linux Boot Manager > Boot000B* CD/DVD Drive > Boot000C* Hard Drive > Boot000D* Removable Drive >=20 > Efibootmgr -n 7 seems to make no difference, as expected, but: > # efibootmgr -N 7 > Boot entry 0001 does not exist I can't comment on the systemd's bootctl, because I don't use it, by as I=20 understand it 'efibootmgr --delete-bootnext' will clear the BootNext entry = in=20 UEFI settings and does not take a boot entry number as a variable on the CL= I. =20 I can't answer why "7" in your entry above returns a comment about "Boot en= try=20 0001" ... which is obviously absent. --nextPart4571318.31r3eYUQgx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl7+7iEACgkQseqq9sKV ZxlYug/9E9V8FoVjD+n/BwtjuuQEvnPC1ia3mwXK1i2htN5p/gI4A2xVE0GzHFIE 3sy99nt86ABH3gmMPUGB7nLz7B4S+7V4Kqnza7AgEzKVD07su0OB1FCKU/5/Bycc ebIs04U5HLBAGst2EACOTPfIdUHCvZZLuBBcxup8yv217eCxIC6gjH3T2BaCjIim Lvcf56eKqrf8U7MivgGPcmHo510FjfQI/qi+4/yV9Hn5ugnJ7/+mBRxaRTfBCNJL 1cBL9Cdc1BeiSqDEm44xXs+pHaCp7GfY7e9fry5cmBX7ejcEkZMbBj3ccmSE4oDO b0VvS9arHPVG7q/l4gu+GuPvLzwzvcBAqjcUItofwDv1R1rj35VrX/9p2yvMmciM jIfyo66RcYcfPgCY4YTRLYc7y809QBkUY23T1zhMStNWR0fUtvFkzp89wBc1reU5 tUv0BxoUHWHJeqe9JetRpm1fF8UYqksQ2BP37CFxSd42Qp/GEIHG7WeNXBrn6RNG E8VfZB3gzGit07IDzeVJMYSDeZEWai2VlIWuGrvtqdE6TjSCmORxmK8U9mpdV+Jb UW8NQQ0PCVxyY15Zv+c5KJDuE/nfyr+xh9C5cy4MICS1zJlIknS7buitCcfJWJwP HUDGb5LVShYsNymjFzV2wpmAsoeQ/BXfwNaOor9c0vsaj2Cmcag= =xob+ -----END PGP SIGNATURE----- --nextPart4571318.31r3eYUQgx--