View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Apr 05, 2018 3:45 pm Post subject: Who needs a boot loader anyway |
|
|
I switched my laptop to no-multilib about three years ago. Legacy Grub had to go. I unmerged it planning to replace it with something else. Never did. The Grub code on the MBR keeps working ... _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Thu Apr 05, 2018 5:32 pm Post subject: |
|
|
Jaglover,
Legacy grub is in three pieces.
1) The MBR, where there are 446 bytes available. (Stage 1)
2) The 'wasted' space before the first partition. (stage 1.5)
Those two parts are outside any filesystem so portage does not even know they are there.
3) The grub stage2 file in /boot/grub.
Legacy grub won't work without that.
There is a wrinkle. The stage 1.5 is not actually required and indeed cannot be installed if GPT is in use.
In this case, stage 1 blindly loads stage2 using a block list rather than reading the filesystem.
This still works even with stage2 removed from the directory structure ... until the free space is rewritten. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Thu Apr 05, 2018 7:05 pm Post subject: |
|
|
who needs another bootloader when uefi will boot a kernel _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
joanandk Apprentice
Joined: 12 Feb 2017 Posts: 169
|
Posted: Thu Apr 05, 2018 7:09 pm Post subject: |
|
|
Naib wrote: | who needs another bootloader when uefi will boot a kernel |
My favorite, as long as I have compiled the Kernel correctly. |
|
Back to top |
|
|
The_Document Apprentice
Joined: 03 Feb 2018 Posts: 275
|
Posted: Thu Apr 05, 2018 7:44 pm Post subject: |
|
|
I want to do a stub setup. No more running grub-mkconfig after kernel updates. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Thu Apr 05, 2018 7:47 pm Post subject: |
|
|
efibootmgr works just fine for me. |
|
Back to top |
|
|
The_Document Apprentice
Joined: 03 Feb 2018 Posts: 275
|
Posted: Thu Apr 05, 2018 7:53 pm Post subject: |
|
|
Can't do stub cause Im afraid to wipe hdd partition table. Stuck with grub. |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 975 Location: The Village, Portmeirion
|
Posted: Thu Apr 05, 2018 7:57 pm Post subject: |
|
|
The_Document wrote: | I want to do a stub setup. No more running grub-mkconfig after kernel updates. |
Code: | echo 'mount /boot && grub-mkconfig' >> /etc/kernel/postinst.d/grubby |
When you run "make install" from the kernel directory it runs "installkernel" which will in turn run any scripts in /etc/kernel/postinst.d. It will do it for you if you want it to. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Apr 06, 2018 7:20 am Post subject: |
|
|
I've been using LILO for the past dozen years, all this talk of multilib problems in a bootloader just sounds completely bizarre to me. |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1812
|
Posted: Fri Apr 06, 2018 5:34 pm Post subject: |
|
|
I love Syslinux. I switched to that after seeing the nightmare that was Grub 2. In my case I'm using extlinux with an MBR.
Tom |
|
Back to top |
|
|
Cuong Nguyen Apprentice
Joined: 18 Jan 2018 Posts: 152
|
Posted: Fri Apr 06, 2018 10:48 pm Post subject: |
|
|
My choice:
SYSLINUX for Legacy
rEFInd for UEFI
My systems usually host dual- trip- quadro- or more OSes. efibootmgr doesnt work with Windows, and M$ BCD is dumb and useless for me.
Cuong Nguyen |
|
Back to top |
|
|
|