Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB does not install the configuration directories![SOLVED]
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
JKosta
n00b
n00b


Joined: 11 Nov 2013
Posts: 32

PostPosted: Mon Nov 25, 2013 12:43 am    Post subject: GRUB does not install the configuration directories![SOLVED] Reply with quote

I am trying to install and configuring grub but I have problems with it.
This package does not install the /etc/default/grub file nor /etc/grub/ directory.

What I run:
Code:
grub-mkconfig -o /boot/grub/grub.cfg


What I get:
Code:
cat  /boot/grub/grub.cfg#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#


I get an empty file...
Is it normal?


Last edited by JKosta on Mon Nov 25, 2013 8:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 325
Location: 39.885° N. -88.913° W.

PostPosted: Mon Nov 25, 2013 3:02 am    Post subject: Reply with quote

JKosta

The command that you have posted is not correct if this is what you ran then try this one.
But first make sure that boot is mounted.
Code:
grub2-mkconfig -o /boot/grub/grub.cfg


Are you using this link to help set grub2 ?
http://www.gentoo.org/doc/en/grub2-migration.xml
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Mon Nov 25, 2013 8:22 am    Post subject: Reply with quote

Did you install grub-static? If yes, this is Grub 1 and there is no /etc/grub.d directory and no /etc/default/grub file. If you want Grub 2 you have to emerge the grub package according with the value you give to the GRUB_PLATFORMS variable in /etc/portage/make.conf.
_________________
Paul
Back to top
View user's profile Send private message
JKosta
n00b
n00b


Joined: 11 Nov 2013
Posts: 32

PostPosted: Mon Nov 25, 2013 5:38 pm    Post subject: Reply with quote

tryn,

Code:
grub2-mkconfig -o /boot/grub/grub.cfg
bash: grub2-mkconfig: command not found



Logicien,

Code:
emerge -av grub

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-boot/grub-2.00-r7  USE="binfont nls -custom-cflags -debug -device-mapper -doc -efiemu -libzfs -mkfont -mount -sdl -static" GRUB_PLATFORMS="pc -coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -qemu -qemu-mips -yeeloong" 0 kB
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Mon Nov 25, 2013 7:26 pm    Post subject: Reply with quote

When did you last updated your system? As far as I know sys-boot/grub-2.00-r7 has never been released. It's strange.
Back to top
View user's profile Send private message
JKosta
n00b
n00b


Joined: 11 Nov 2013
Posts: 32

PostPosted: Mon Nov 25, 2013 8:24 pm    Post subject: Reply with quote

I installed sys-boot/grub-2.00_p5107-r2 and solved the problem.

Thanks to tryn, Logicien and fturco!
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