Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Who needs a boot loader anyway
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 05, 2018 3:45 pm    Post subject: Who needs a boot loader anyway Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Thu Apr 05, 2018 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 05, 2018 5:39 pm    Post subject: Reply with quote

Just noticed there is sys-boot/grub-static, so I guess I could install legacy Grub back after all. But why should I. It has been working for three years without.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu Apr 05, 2018 7:05 pm    Post subject: Reply with quote

who needs another bootloader when uefi will boot a kernel
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
joanandk
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

PostPosted: Thu Apr 05, 2018 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 275

PostPosted: Thu Apr 05, 2018 7:44 pm    Post subject: Reply with quote

I want to do a stub setup. No more running grub-mkconfig after kernel updates.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8933

PostPosted: Thu Apr 05, 2018 7:47 pm    Post subject: Reply with quote

efibootmgr works just fine for me.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 275

PostPosted: Thu Apr 05, 2018 7:53 pm    Post subject: Reply with quote

Can't do stub cause Im afraid to wipe hdd partition table. Stuck with grub.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 975
Location: The Village, Portmeirion

PostPosted: Thu Apr 05, 2018 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Apr 06, 2018 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1812

PostPosted: Fri Apr 06, 2018 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cuong Nguyen
Apprentice
Apprentice


Joined: 18 Jan 2018
Posts: 152

PostPosted: Fri Apr 06, 2018 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum