2 ms·
Of course, now that there is EFI, the "BIOS" contains its own rather fully-featured FAT filesystem driver, so it could theoretically boot and resume from hibern
by userbinator 11y ago
Of course, now that there is EFI, the "BIOS" contains its own rather fully-featured FAT filesystem driver, so it could theoretically boot and resume from hibernate without requiring the files be in the root.
I don't think that's a better way of doing it. The "dumb and simple" BIOS way, where all it did was load the first sector of the boot device into memory and jump to it, was far easier to understand and debug.
- vezzy-fnord 11y agoIt's still better than pulling down the entire weight and redundancy of GRUB. I guess you could make the argument that the bootloader is sort of a vestigial necessity from historical shortcomings in PC firmwares that have now been, if not necessarily improved per se, at least juiced up. But yes, we're heading into the direction of booting kernels as EFI executables from stub loaders, at least in the contemporary GNU/Linux world. Further, you can just hardcode a cpio archive of an initramfs inside a kernel configured for building with EFI stub support. Downsides are your CONFIG_CMDLINE (boot params) becomes hardcoded into the kernel configuration, unless you use something like efibootmgr to keep regenerating kernels with different boot parameters. But given the trend of lowering and hiding customizability, I expect it to be par for the course. systemd merging in Gummiboot into their source tree should give you an idea of what's to come in the future.
- andreiw 11y ago(U)EFI has a very open architecture. MS could well write an NTFS driver and register it with the firmware to be loaded prior to handing off to the NT boot manager. These sort of things tend to go against the grain of platform portability, though, even though pretty much the only platforms Windows appears to support these days are (or have been) consolidating around UEFI and ACPI.