View previous topic :: View next topic |
Author |
Message |
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3610
|
Posted: Tue Mar 14, 2017 3:26 am Post subject: [SOLVED]: GRUB reinstall |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Tue Mar 14, 2017 7:03 am Post subject: |
|
|
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 |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3610
|
Posted: Wed Mar 15, 2017 2:59 am Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Wed Mar 15, 2017 6:54 am Post subject: |
|
|
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 |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3610
|
Posted: Sat Mar 18, 2017 5:39 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Sat Mar 18, 2017 5:54 pm Post subject: |
|
|
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 |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3610
|
Posted: Sun Mar 19, 2017 6:05 am Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Sun Mar 19, 2017 5:24 pm Post subject: |
|
|
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 |
|
|
|