Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need reinstall after changing grub USE flags?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Fri Dec 23, 2011 2:25 pm    Post subject: Need reinstall after changing grub USE flags? Reply with quote

I already have gentoo installed on my laptop. If I change the USE flag of grub an re-emerge it, do I have to run grub-install to reinstall it?
_________________
All operating systems suck. This one just sucks less.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Dec 23, 2011 2:35 pm    Post subject: Reply with quote

fangwen,

emerge -N ... rebuilds and reinstalls packages with changed USe flags so that the new flags take effect.
There are a couple of oddballs to that. The ones that come to mind are grub and the kernel.

emerge grub will attempt to install grub into /boot for you but thats only a part of the update. Grub is in three parts, stage1, stage1.5 and stage2
Stage2 is in /boot/grub and its used from there at boot time. Stage1 and stage1.5 are there too but they are never used from /boot. They are installed outside of filesystem space.
Stage1 goes into the MBR and stage1.5 follows it in the unused space before the first partition.

This means you must install grub to the MBR again to get a consistant grub install. If you mix and match grub may not work, you will find out when the next boot fails.
_________________
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
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Fri Dec 23, 2011 2:39 pm    Post subject: Reply with quote

Thank you. Now I am quite clear about that.
_________________
All operating systems suck. This one just sucks less.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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