Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Wols Lists
On 17/04/2023 23:36, Peter Humphrey wrote: On Monday, 17 April 2023 21:41:09 BST Wols Lists wrote: On 17/04/2023 17:52, Mark Knecht wrote: Later on a Kubuntu update found Windows, updated the EFI stuff on the Windows drive and then, I see this morning, erased everything out of the Kubuntu EFI

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Peter Humphrey
On Monday, 17 April 2023 21:41:09 BST Wols Lists wrote: > On 17/04/2023 17:52, Mark Knecht wrote: > > Later on a Kubuntu update found Windows, updated the EFI > > stuff on the Windows drive and then, I see this morning, > > erased everything out of the Kubuntu EFI partition but > > left the

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Lee
Never mix Windows with real OS's if you can avoid it. I have separate machine for Windows. Lee  On Mon, Apr 17, 2023, 1:41 PM Wols Lists wrote: > On 17/04/2023 17:52, Mark Knecht wrote: > > Later on a Kubuntu update found Windows, updated the EFI > > stuff on the Windows drive and then, I see

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mitch D.
You can probably use a portage hook to do it. I haven't tested it, but something along the lines of creating a file at "/etc/portage/env/sys-boot/grub" which contains an implementation of the "post_pkg_postinst()" function. Then, you can copy the logic from the ebuild to determine whether the

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Wols Lists
On 17/04/2023 17:52, Mark Knecht wrote: Later on a Kubuntu update found Windows, updated the EFI stuff on the Windows drive and then, I see this morning, erased everything out of the Kubuntu EFI partition but left the partition there. I had a similar problem trying to install SUSE to dual boot

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Dr Rainer Woitok
Mitch, On Monday, 2023-04-17 08:15:51 -0400, you wrote: > I just took a quick glance at the ebuild, and it looks like it should print > a reminder ("Re-run grub-install to update installed boot code!") every > time you upgrade from an older version to a newer one, but it also looks > like the

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mark Knecht
On Mon, Apr 17, 2023 at 10:11 AM Michael wrote: > > On Monday, 17 April 2023 17:52:25 BST Mark Knecht wrote: > > > One thing I haven't decoded is why Windows is and Kubuntu is 0003. > > See below ... > > > > I now better understand Mitch D.'s point that the pointers to which OS to > > boot

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Michael
On Monday, 17 April 2023 17:52:25 BST Mark Knecht wrote: > One thing I haven't decoded is why Windows is and Kubuntu is 0003. See below ... > I now better understand Mitch D.'s point that the pointers to which OS to > boot are not in a disk file, like the old grub configuration, but

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mark Knecht
On Mon, Apr 17, 2023 at 8:18 AM Michael wrote: > > On Monday, 17 April 2023 14:31:08 BST Mark Knecht wrote: > > 2) The more complicated view with GUIDs and such: > > > > mark@science2:~$ efibootmgr -v > > BootCurrent: 0003 > > Timeout: 1 seconds > > BootOrder: 0003, > > Boot* Windows

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mitch D.
Grub and Windows Boot Manager are bootloaders, and they can be "on" a drive, but efibootmgr is not. Your EFI is part of your motherboard, and efibootmgr is just a tool that helps you configure your EFI. The actual EFI configuration is stored on your motherboard, not on either drive. For what it's

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Michael
On Monday, 17 April 2023 14:31:08 BST Mark Knecht wrote: > My needs are quite simple but efibootmgr, set up by the Kubuntu install > on a separate M.2 from the Windows install the machine came with, works for > me. I always start the day in Kubuntu, then reboot to Windows if I'm working > on

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mark Knecht
On Mon, Apr 17, 2023 at 4:57 AM Michael wrote: > > On Monday, 17 April 2023 00:29:49 BST Arsen Arsenović wrote: > > Wol writes: > > > On 16/04/2023 22:30, Mitch D. wrote: > > >> Wol, can you elaborate on why you think Grub is deprecated on EFI > > >> systems? > > > > > > Because EFI is a boot

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Mitch D.
I just took a quick glance at the ebuild, and it looks like it should print a reminder ("Re-run grub-install to update installed boot code!") every time you upgrade from an older version to a newer one, but it also looks like the reminder gets skipped if you're re-emerging the same version.

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Michael
On Monday, 17 April 2023 00:29:49 BST Arsen Arsenović wrote: > Wol writes: > > On 16/04/2023 22:30, Mitch D. wrote: > >> Wol, can you elaborate on why you think Grub is deprecated on EFI > >> systems? > > > > Because EFI is a boot manager? > > That is not the case any more than the classic IBM

Re: [gentoo-user] updating /boot directory EFI

2023-04-17 Thread Dr Rainer Woitok
Mitch, On Sunday, 2023-04-16 07:16:09 -0400, you wrote: > ... > "grub-install" copies Grub from your Gentoo installation to your hard drive > / SSD / etc. This has nothing to do with your kernel, it only involves > Grub. Rerun this command when you emerge updates to Grub. Is this really

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Arsen Arsenović
Wol writes: > On 16/04/2023 22:30, Mitch D. wrote: >> Wol, can you elaborate on why you think Grub is deprecated on EFI systems? > > Because EFI is a boot manager? That is not the case any more than the classic IBM PC boot procedure is. There is technical capability for UEFI firmware to act in

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Wol
On 16/04/2023 22:30, Mitch D. wrote: Wol, can you elaborate on why you think Grub is deprecated on EFI systems? Because EFI is a boot manager? Why chain-load boot managers? Cheers, Wol On Sun, Apr 16, 2023, 15:17 hitachi303 > wrote: Am 16.04.23

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Arsen Arsenović
Wol writes: > On 16/04/2023 18:43, the...@sys-concept.com wrote: >> On 4/16/23 08:49, Lee K wrote: >>> Also, learn how to boot a kernel from the grub cli, and keep a printed >>> version of these instructions in a handy place. This has saved my butt >>> countless times. :) >> Thanks Lee, that is

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Peter Humphrey
On Sunday, 16 April 2023 19:31:23 BST Wol wrote: > Or, seeing as grub is deprecated with EFI, learn how to boot using EFI. > > Don't worry, I haven't really learned either :-) I just keep a Slack > live-CD handy ... (I'm tired and it's bedtime, so I hope you'll overlook any boo-boos.) You can

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Mitch D.
Wol, can you elaborate on why you think Grub is deprecated on EFI systems? On Sun, Apr 16, 2023, 15:17 hitachi303 wrote: > Am 16.04.23 um 21:11 schrieb Mitch D.: > > A minimal EFI bootloader can show an updated menu for the new kernels > > without needing to make regular writes to the EFI

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread hitachi303
Am 16.04.23 um 21:11 schrieb Mitch D.: A minimal EFI bootloader can show an updated menu for the new kernels without needing to make regular writes to the EFI variable storage. I didn't know Grub was deprecated, but there are other options. rEFInd is pretty. Syslinux is flexible.

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Mitch D.
There is a catch related to using EFI without a conventional bootloader. If you want your boot menu to include details such as kernel versions, then it would be necessary to run efibootmgr every time you update the kernel. I'm not sure if the EFI variable storage is resilient to repeated writes,

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Wol
On 16/04/2023 18:43, the...@sys-concept.com wrote: On 4/16/23 08:49, Lee K wrote: Also, learn how to boot a kernel from the grub cli, and keep a printed version of these instructions in a handy place. This has saved my butt countless times. :) Thanks Lee, that is really helpful hint. Or,

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread thelma
On 4/16/23 08:49, Lee K wrote: Also, learn how to boot a kernel from the grub cli, and keep a printed version of these instructions in a handy place. This has saved my butt countless times. :) Thanks Lee, that is really helpful hint.

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread thelma
On 4/16/23 05:16, Mitch D. wrote: When you emerge grub, Gentoo compiles and "installs" grub (and some grub-related tools) to a directory inside your Gentoo installation, just like other applications. The catch is that grub isn't like other applications... it needs to run outside of Gentoo,

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Dale
Lee K wrote: > Also, learn how to boot a kernel from the grub cli, and keep a printed > version of these instructions in a handy place. This has saved my butt > countless times. :) > OP:  I can't agree more.  Just a couple weeks ago, my system wouldn't boot except to a rescue thingy.  I had to

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Lee K
Also, learn how to boot a kernel from the grub cli, and keep a printed version of these instructions in a handy place. This has saved my butt countless times. :) -- Lee

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Peter Humphrey
On Sunday, 16 April 2023 12:16:09 BST Mitch D. wrote: > All EFI systems are supposed to have an EFI system partition (ESP). Some > people use the ESP as their boot partition, while other people keep them as > two separate partitions and mount the boot partition as /boot and the ESP > as

Re: [gentoo-user] updating /boot directory EFI

2023-04-16 Thread Mitch D.
When you emerge grub, Gentoo compiles and "installs" grub (and some grub-related tools) to a directory inside your Gentoo installation, just like other applications. The catch is that grub isn't like other applications... it needs to run outside of Gentoo, before Linux starts. This means that Grub

Re: [gentoo-user] updating /boot directory EFI

2023-04-15 Thread thelma
On 4/15/23 22:01, the...@sys-concept.com wrote: After installing new kernel how to update /boot EFI directory? From my notes, I have: grub-mkconfig -o /boot/grub/grub.cfg grub-install --target=x86_64-efi --efi-directory=/boot or should it be: grub-mkconfig -o /boot/grub/grub.cfg efibootmgr -c

[gentoo-user] updating /boot directory EFI

2023-04-15 Thread thelma
After installing new kernel how to update /boot EFI directory? From my notes, I have: grub-mkconfig -o /boot/grub/grub.cfg grub-install --target=x86_64-efi --efi-directory=/boot or should it be: grub-mkconfig -o /boot/grub/grub.cfg efibootmgr -c -d /dev/nvme0n1p1 -p 1 -L "Gentoo" -l