4 ms·
As someone who has actually written (albeit following a tutorial, for a hobby project) a working non-UEFI bootloader, and having done a lot of experimentation w
by phaedrus 5y ago
As someone who has actually written (albeit following a tutorial, for a hobby project) a working non-UEFI bootloader, and having done a lot of experimentation with dual-booting, manipulating disk images, etc.:
I find it hard to believe dropping legacy boot support saves hundreds of megabytes of any data in the OS, let alone source code. (If anything, the UEFI code is orders of magnitude larger / closer to that size, than legacy boot support.)
I could believe that dropping legacy boot support drops a lot of complexity and arcane, old code that's no longer as well-understood. However the actual footprint of that code can't be large. The boot sector is only 512 bytes, then you chain to a secondary and maybe tertiary step in the boot but those are measured in kilobytes or megabytes, hardly hundreds of megabytes (compiled).
But the fact is once the boot process has completed there's no longer any reason to refer back to any of the stuff that happened during the legacy boot while the operating system is running normally; by that point how the boot was accomplished is a non-issue. So it's not like, for example, supporting outdated/obscure hardware where you have to keep a bunch of drivers around.
- jjoonathan 5y agoMaybe the size includes pdf/docx/ppt notes. Maybe there are a few decades of accumulated copy+paste+modify code chunks. Or maybe it really is just complexity -- but at the end of the day that's what matters. > But the fact is once the boot process has completed there's no longer any reason to refer back The instruction pointer is hardly the only state here. Doesn't the __SM__ structure (and the mess that came before) cascade into a bunch of configuration? It seems to me that it really could look like keeping a bunch of drivers around.
- tinus_hn 5y agoOr maybe this is a comment on a forum full of people that like to pretend they are experts in any subject at hand, and the author has no idea how big this source code is. Literally.
- anthk 5y agoThis. MBR+LILO booting is dumb simple, these people don't know a shit about what their are talking about.