Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: GRUB reinstall
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
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2772

PostPosted: Tue Mar 14, 2017 3:26 am    Post subject: [SOLVED]: GRUB reinstall Reply with quote

Hi,
I need to do a GRUB-2 reinstall.

Here is the log from the trying to merge the current GRUB version.
However, as can be seen here it is not available.

And here is the list of all grub ebuilds.

Am I doing something wrong?

Thank you.


Last edited by ONEEYEMAN on Sun Mar 19, 2017 5:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Tue Mar 14, 2017 7:03 am    Post subject: Reply with quote

For problem of sys-process/procps:0 and sys-libs/ncurses:0 you can try with --backtrack=100 option of emerge.

Code:
!!! '=sys-boot/grub:2' is not a valid package atom.
!!! Please check ebuild(5) for full details.

'=' is used with a exact version of package and not with slot, correct atom are
Code:
=sys-boot/grub-2.02_beta3-r1
sys-boot/grub:2

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2772

PostPosted: Wed Mar 15, 2017 2:59 am    Post subject: Reply with quote

Hi,
This is the log of me trying to rebuild and re-install the GRUB.

Couple of questions:
1. Why there are 2 additional packages that needs to be installed?
2. How do I turn on libzfs support? I will try to do Solaris dual-boot and see if it is possible.

Thank you.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Wed Mar 15, 2017 6:54 am    Post subject: Reply with quote

ONEEYEMAN wrote:
1. Why there are 2 additional packages that needs to be installed?

Because grub has recently added GRUB_PLATFORMS flag, activating pc and efi-64 by default.
If you don't use efi you can add GRUB_PLATFORMS="pc" (or flag you need) on your make.conf

ONEEYEMAN wrote:
2. How do I turn on libzfs support? I will try to do Solaris dual-boot and see if it is possible.

libzfs is masked use flag, you need to unmask with /etc/portage/profile/package.use.mask for package or globally with /etc/portage/profile/use.mask
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2772

PostPosted: Sat Mar 18, 2017 5:39 pm    Post subject: Reply with quote

Hi, fedeliallalinea
Here is the try to emerge the grub-2.
And here is the package.use.mask.

As you can see the flag is still not on.

I booted up from the LiveCD and chrooted into the install.

Any idea?

Thank you.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Sat Mar 18, 2017 5:54 pm    Post subject: Reply with quote

package.use.mask and use.mask files work differently compared to at others files package.*
For unmask a a use flag you need to add sign '-'
Code:
# echo "sys-boot/grub:2 -libzfs" >> /etc/portage/profile/package.use.mask
# echo "sys-boot/grub:2 libzfs" >> /etc/portage/package.use
# emerge grub:2

For others problems use --backtrack=100 option of emerge
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2772

PostPosted: Sun Mar 19, 2017 6:05 am    Post subject: Reply with quote

Hi, fedeliallalinea,
That worked.

However I got this.

As far as I understand even if I am chrooted I am running the kernel from the CD, right? Or it picks up the kernel configuration from the hard drive?

Please clarify. I can rebuild the kernel with this option turn on and install it but need to make sure that this is a way to go.

Thank you.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21791
Location: here

PostPosted: Sun Mar 19, 2017 5:24 pm    Post subject: Reply with quote

ONEEYEMAN wrote:
As far as I understand even if I am chrooted I am running the kernel from the CD, right? Or it picks up the kernel configuration from the hard drive?

When you boot from a live cd/usb the kernel in use is provided by the booted media.
I'm not familiar with zfs, but you can try ZFS-for-SystemRescueCD create by the user kernelOfTruth.
_________________
Questions are guaranteed in life; Answers aren't.
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