View previous topic :: View next topic |
Author |
Message |
NotExcessive Apprentice
Joined: 10 May 2005 Posts: 235
|
Posted: Thu Feb 21, 2013 11:22 am Post subject: [SOLVED]Can't find grub2 via emerge when buliding new system |
|
|
Hi all;
I'm building up a new server using the current version of the Live DVD to bring the machine up so it can download and build from Stage 3.
I've used parted to partition the drives with GPT.
All was going well, until it came time to emerge Grub2. It's nowhere to be found! The only results that came back were for the old version of Grub, namely 0.97, and that of course won't work on this disk.
Can anybody tell me what's happened? How do I get Grub2 onto the system so I can finish the build?
Last edited by NotExcessive on Sat Feb 23, 2013 8:12 am; edited 1 time in total |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Thu Feb 21, 2013 12:42 pm Post subject: |
|
|
I've never needed to use grub2,but it is in portage although masked.
So in order to install it you'll have to unmask it.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
NotExcessive Apprentice
Joined: 10 May 2005 Posts: 235
|
Posted: Thu Feb 21, 2013 5:28 pm Post subject: |
|
|
gerard82 wrote: | I've never needed to use grub2,but it is in portage although masked.
So in order to install it you'll have to unmask it.
Gerard. |
That's odd: I had built another machine a few weeks ago, and Grub2 was there without the need to do anything else apart from install it, and everything went off without a hitch.
How do I unmask it if I can't even see it in the emerge list? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Feb 21, 2013 6:12 pm Post subject: |
|
|
Well, first of all, if you haven't already, emerge gentoolkit, which contains equery. With it, you can see all available versions which, as of this writing, are: Code: | $ sudo equery list -p grub
Password:
* Searching for grub ...
[-P-] [ ] sys-boot/grub-0.92-r1:0
[-P-] [ ] sys-boot/grub-0.94-r1:0
[-P-] [ ] sys-boot/grub-0.96-r1:0
[-P-] [ ] sys-boot/grub-0.96-r2:0
[-P-] [ ~] sys-boot/grub-0.96-r3:0
[-P-] [ ~] sys-boot/grub-0.97:0
[-P-] [ ] sys-boot/grub-0.97-r2:0
[-P-] [ ] sys-boot/grub-0.97-r3:0
[-P-] [ ] sys-boot/grub-0.97-r4:0
[-P-] [ ] sys-boot/grub-0.97-r5:0
[-P-] [ ] sys-boot/grub-0.97-r6:0
[-P-] [ ~] sys-boot/grub-0.97-r8:0
[-P-] [ ] sys-boot/grub-0.97-r9:0
[-P-] [ ] sys-boot/grub-0.97-r10:0
[-P-] [ ~] sys-boot/grub-0.97-r11:0
[IP-] [ ] sys-boot/grub-0.97-r12:0
[-P-] [ ~] sys-boot/grub-0.97-r13:0
[-P-] [ -] sys-boot/grub-1.99-r2:2
[-P-] [ -] sys-boot/grub-2.00_beta6:2
[-P-] [ ~] sys-boot/grub-2.00-r1:2
[-P-] [ ~] sys-boot/grub-2.00-r2:2
[-P-] [ -] sys-boot/grub-9999:2
| Inside the second set of brackets the tilde character (~) indicates which versions are masked, the dash which versions are hard masked. Regarding unmasking, I'll refer you to the Mixing Software Branches chapter of the Handbook.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Feb 21, 2013 8:12 pm Post subject: |
|
|
yall are noobs.... (run ls -al /etc/portage/package.accept_keywords, if you dont have it then run touch /etc/portage/package.accept_keywords)
as root
Code: |
cat >> /etc/portage/package.accept_keywords << 'EOF'
sys-boot/grub
EOF
|
then running
should show tada grub2 |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Feb 21, 2013 9:13 pm Post subject: |
|
|
@666threesixes666, the philosophy, consciously applied (I believe) by both Gerard and myself, is not to spoon feed, but to teach the OP where in the Gentoo documentation to learn what he needs in order to proceed. Spoon feeding Gentoo doesn't work well in the long run.
I'll also just give a friendly first warning that name calling is against the Forum Guidelines.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Feb 21, 2013 9:35 pm Post subject: |
|
|
if my lovely reported post fails, its because portage needs updated to pull in grub2 ebuilds...
again as root
(then run the reported post's emerge grub command) |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Thu Feb 21, 2013 9:58 pm Post subject: |
|
|
666threesixes666 grub2 would still be masked.
So who's the noob here?
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Feb 21, 2013 11:19 pm Post subject: |
|
|
mkultra@mksrv [ ~ ]$ cat /etc/portage/package.accept_keywords | grep grub
sys-boot/grub
Installed versions:
Slot 2: 2.00-r2
seems to unmask mine fine..... |
|
Back to top |
|
|
NotExcessive Apprentice
Joined: 10 May 2005 Posts: 235
|
Posted: Fri Feb 22, 2013 5:10 pm Post subject: |
|
|
I tried unmasking as suggested in the various posts, all to no avail. I just couldn't get Grub2 to appear, so I gave up and just used Grub legacy with the fdisk boot flag workaround. System now boots. I take it there were some problems with Grub2 if it's now masked. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sat Feb 23, 2013 5:35 am Post subject: |
|
|
NotExcessive wrote: | I tried unmasking as suggested in the various posts, all to no avail. I just couldn't get Grub2 to appear, so I gave up and just used Grub legacy with the fdisk boot flag workaround. System now boots. I take it there were some problems with Grub2 if it's now masked. |
shouldnt be
try running this and see if you see similar output:
Code: |
# emerge -pv =sys-boot/grub-2.00-r2
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS #] sys-boot/grub-2.00-r2:2 [0.97-r13:0] USE="nls -custom-cflags -debug -device-mapper -doc -efiemu -libzfs -mount -sdl -static -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong" 0 kB
Total: 1 package (1 in new slot), Size of downloads: 0 kB
The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
#required by =sys-boot/grub-2.00-r2 (argument)
# /etc/portage/package.mask/grub2:
=sys-boot/grub-2.00-r2
NOTE: The --autounmask-keep-masks option will prevent emerge
from creating package.unmask or ** keyword changes.
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
NB: i dont know why the superflous cat'ing until EOF, when `echo` will do. E.g. echo '>=sys-root/grub-2' >> /etc/portage/package.unmask _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
NotExcessive Apprentice
Joined: 10 May 2005 Posts: 235
|
Posted: Sat Feb 23, 2013 8:12 am Post subject: |
|
|
cach0rr0 wrote: |
try running this and see if you see similar output:
Code: |
# emerge -pv =sys-boot/grub-2.00-r2 |
|
Now THAT shows it. OK, will remember this for next time, if it doesn't pop up by itself. Thanks. |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Sat Feb 23, 2013 9:46 am Post subject: |
|
|
NotExcessive wrote: | cach0rr0 wrote: |
try running this and see if you see similar output:
Code: |
# emerge -pv =sys-boot/grub-2.00-r2 |
|
Now THAT shows it. OK, will remember this for next time, if it doesn't pop up by itself. Thanks. |
Code: | emerge sys-boot/grub:2 | Should also work, if you take a look at eix or whatever else you can see it is slot 2, just saves a little typing . |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sun Feb 24, 2013 12:15 am Post subject: |
|
|
NotExcessive wrote: | cach0rr0 wrote: |
try running this and see if you see similar output:
Code: |
# emerge -pv =sys-boot/grub-2.00-r2 |
|
Now THAT shows it. OK, will remember this for next time, if it doesn't pop up by itself. Thanks. |
yip, standard 'emerge sys-boot/grub' is only going to show you the latest grub version that isn't keyworded or masked in some other way
i actually use 'eix' to show me all versions of a package in portage; there are other ways, but this is the quickest for me
Code: |
emerge -v eix
eix-update
|
then
Code: |
vunnable ~ # eix sys-boot/grub
[I] sys-boot/grub
Available versions:
(0) *0.92-r1 0.94-r1 0.96-r1 0.96-r2 (~)0.96-r3 (~)0.97 0.97-r2 0.97-r3 0.97-r4 0.97-r5 0.97-r6 (~)0.97-r8 0.97-r9 0.97-r10 (~)0.97-r11 0.97-r12 (~)0.97-r13
(2) [m]**1.99-r2 [m]**2.00_beta6 [m](~)2.00-r1 [m](~)2.00-r2 [m]**9999
{custom-cflags debug device-mapper doc efiemu libzfs mount ncurses netboot nls sdl static truetype GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 multiboot pc qemu qemu-mips yeeloong"}
Installed versions: 0.97-r13(07:44:35 AM 02/18/2013)(ncurses -custom-cflags -netboot -static)
Homepage: http://www.gnu.org/software/grub/
Description: GNU GRUB boot loader
* sys-boot/grub-static
Available versions: 0.96-r1 0.97 0.97-r6 0.97-r9 0.97-r10 0.97-r12
Homepage: http://www.gnu.org/software/grub/
Description: GNU GRUB Legacy boot loader (static build)
Found 2 matches.
|
from that, i can see that grub-2.00-r2 exists, but is masked. If I don't understand the letters or characters, I can try to emerge that specific version to see *why* it's not showing up when i do a normal emerge, by prepending the '=' to the full package atom:
Code: |
vunnable ~ # emerge -pv =sys-boot/grub-2.00-r2
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS #] sys-boot/grub-2.00-r2:2 [0.97-r13:0] USE="nls -custom-cflags -debug -device-mapper -doc -efiemu -libzfs -mount -sdl -static -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong" 0 kB
Total: 1 package (1 in new slot), Size of downloads: 0 kB
The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
#required by =sys-boot/grub-2.00-r2 (argument)
# /etc/portage/package.mask/grub2:
=sys-boot/grub-2.00-r2
NOTE: The --autounmask-keep-masks option will prevent emerge
from creating package.unmask or ** keyword changes.
|
and there you are; it tells you why that specific version is blocked
HTH _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
|