Earlier quoted context omitted.
What kind of machines are people using that entering the UEFI boot menu is difficult? On all three of mine I just press F10 during the first 5 or seconds the vendor logo shows, and I end up in a nice menu where I could select Windows, other kernels, memtest, or the EFI shell or setup.
Grub is the same everywhere. Motherboard bios/uefi is not. It isn't F10 for me.
No more boot loader: Please use the kernel instead
241–250 of 460 posts
Re: No more boot loader: Please use the kernel instead
#242Earlier quoted context omitted.
My broader point is that the majority of kexec issues are associated with the difficulty in quiescing the hardware, and there's simply no need to load the majority of drivers before offering this option which constrains the problem significantly.
Does the kernel actually support doing that? The pitch is that they already have all the pieces and don’t need to do any kernel work to enable this.
Or, at least: I certainly didn't have to do anything to the kernel for it to work. I'm just running whatever Void Linux is rolling with right now.
Re: No more boot loader: Please use the kernel instead
#243Earlier quoted context omitted.
I watched the video. They have two different configurations, one where there’s only one kernel, one where there are indeed two separate kernels with one kexec’ing to the other.
thank you for your sacrifice and for the resulting correction to my error
Re: No more boot loader: Please use the kernel instead
#244Earlier quoted context omitted.
What's the reason it doesn't load those modules from the regular filesystem? That's what FreeBSD does, and seems to work well enough?
Because there are a lot of different types of filesystems supported. And you'd have to compile them all into the kernel. Which of course you can do, that is supported by the build system today. But Distros typically prefer to keep their kernels small, and not waste the RAM that would be taken up by compiling it all into the kernel.
Re: No more boot loader: Please use the kernel instead
#245It's something you can do since a lot of years. I used to do so 10 years ago, when I've got the first motherboard with UEFI. But is it useful? It saves a minimal time in the boot sequence, but at what cost? The bootloader (being it grub, or something more simple as systemd-boot) is useful to me for a couple of reasons: - it allows to dual-boot with Windows easily: motherboard boot menu is often not easy to access, yo…
This is an indication of bad admin choice. The kernel defaults should not corrupt the boot process and if you add further experimental flags for testing you ought to have a recovery mechanism in place beforehand.
Re: No more boot loader: Please use the kernel instead
#246I’ll look into this but prefer kernels managed automatically by apt/dnf etc.
Re: No more boot loader: Please use the kernel instead
#247I prefer my bootloader (be that it may, GRUB, lilo, or even BusyBox) because thosr image will go away once the kernel is started. Nothing for hacker to see and analyze the bootloader, assuming you did not load a driver to the NVRAM/Flash/UEFI/EFI. Nice security compartment alization. Redhat is smothering this easential security abstraction of 1st stage loader: not a good security model.
Can you explain more what security vector you're talking about here, because I just don't see it? Like, as far as I can tell, grub or whatever is a bundle of filesystem and device drivers, with enough info to then execute a kernel. Linux also is a bundle of filesystem and device drivers, but better tested ones I think. To me, it seems like using the kernel's filesystem drivers, which you have to use already anyway on…
(Looking at you, systemd.)
You don’t allow access to the bootloader from any kernel, thereby afford a relative security in starting 2nd stage (kernels). One abstraction is that TPM, et. al., can lockstep assurances on each stage. At a minimum, you have a bootloader, in case of SNAFU/FOOBAR.
Bricking (or worse, malicious kernel) seems more a possibility with upcoming Redhat design.
Re: No more boot loader: Please use the kernel instead
#248I recently moved to sdboot and prefer its simplicity compared to grub. However they still missed the mark a bit, its folder tree on the ESP is a mess. I’ll look into this but prefer kernels managed automatically by apt/dnf etc.
Re: No more boot loader: Please use the kernel instead
#249You had the bootloader because first you needed executable code in the first sector of the partition, and you can't fit much in those 512 bytes. But moving to UEFI means you never execute that code anymore. Instead, you load a BOOT.EFI file off of a FAT16/FAT32 partition. If there's a restriction on size for that, then you proceed to a bootloader instead of the real kernel.
That's for the case for MBR partition type, I really hope we moved to more modern alternatives
Re: No more boot loader: Please use the kernel instead
#250Meta: Can someone with Linux/bootloader knowledge tell me whether most of these comments are as clueless as they seem?
Many seem a bit confused but I have only skimmed the comments. I don't understand the point of the thing described in the OP (I have not watched the talk, just skimmed the notes), myself. Linux kernels can EFI load themselves; if you want more flexibility than a precompiled kernel command line, or to load from ext4/other non-FAT filesystems, refind exists, fits on the ESP (kernel + initramfs can get big; I keep mine…