Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up rEFInd conf problems
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
mirko28
n00b
n00b


Joined: 03 Aug 2015
Posts: 6
Location: Montenegro

PostPosted: Mon Aug 03, 2015 9:51 am    Post subject: Setting up rEFInd conf problems Reply with quote

I want to dual boot Windows 10 with Gentoo. I have Windows installed and refind inside it's ESP. rEFInd works great I have windows entry. I'm following Handbook, and I'm at configuring kernel. I have installed kernel using genkernel. My question is, do I need to manually compile kernel, are genkernel defaults ready for GPT/UEFI?

Output of ls /boot:
initramfs-genkernel-x86_64-4.0.5-gentoo
kernel-genkernel-x86_64-4.0.5-gentoo
System.map-genkernel-x86_64-4.0.5-gentoo

I need help with creating refind_linux.conf, I don't have it because I have installed refind manually from windows, not from install.sh script.

What I need to include in ESP's EFI\Boot\Gentoo(Not yet created but I saw somewhere that it's needed)?

Do I need to make entry in refind.conf, or it will automatically recongnize?

Maybe I'm asking a lot but I'm lost in this, everyone says different story.

Thanks!
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Tue Aug 04, 2015 4:38 am    Post subject: Reply with quote

My refind.conf has no entries. I just went with autodetection. I installed manually from linux.

The relevant portion of the file tree, I believe is:

/boot/efi/EFI/Microsoft/bootmgr.efi

The bootmgr.efi I copied over from Windows, which is on a separate SSD, to the SSD on which I have installed rEFInd and linux.

Hope this helps.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
vasettoo
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2012
Posts: 77

PostPosted: Tue Aug 04, 2015 10:48 am    Post subject: Reply with quote

Have in mind that rEFInd recognizes only "bzImage" or "vmlinuz" entries in /boot. Change accordingly yours. See mine:
Code:
 ls /boot/
System.map-genkernel-x86_64-4.0.5-gentoo
bzImage-genkernel-x86_64-4.0.5-gentoo
initramfs-genkernel-x86_64-4.0.5-gentoo

To answer your question - following the instructions on the rEFInd page there is no need of manual configuration/edit of refind.conf.
Best regards!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Aug 04, 2015 6:03 pm    Post subject: Re: Setting up rEFInd conf problems Reply with quote

mirko28 wrote:
[...] My question is, do I need to manually compile kernel, are genkernel defaults ready for GPT/UEFI?

mirko28 ... I don't use genkernel but afaik, no. You'll need the following enabled:

CONFIG_EFI=y
CONFIG_RELOCATABLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI_VARS=m
CONFIG_EFI_STUB=y

... and dependent on what you plan to use as the framebuffer:

CONFIG_FB_EFI=y

... it shouldn't hurt if enabled (I don't ... using KMS/inteldrmfb).

mirko28 wrote:
Code:
initramfs-genkernel-x86_64-4.0.5-gentoo
kernel-genkernel-x86_64-4.0.5-gentoo
System.map-genkernel-x86_64-4.0.5-gentoo

For rEFInd to autodetect efi executables they need to be suffixed '.efi'. Also, for rEFInd to autodetect which initramfs belongs to which kernel they need to follow the same naming convention, eg:

vmlinuz-3.13.11.efi
initramfs-3.13.11.cpio.gz

I've not used genkernel so I can't say for sure if the naming will match or not, as I remember it matches from left to right, so it will probably work ... though you will need to add the .efi suffix to the kernel.

mirko28 wrote:
I need help with creating refind_linux.conf, I don't have it because I have installed refind manually from windows, not from install.sh script.

The refind_conf.example provided in the .zip has some examples, you shouldn't need to provide much as autodetection is a far better method than explict entires (and using autodetection makes updating easier as no editing of the refind.conf is required). This is all I have ...

refind.conf
Code:
timeout 5
hideui banner
showtools shell, reboot, exit
dont_scan_dirs efi/grub2

The last entry, 'dont_scan_dirs', just prevents grub2 showing up in the menu.

mirko28 wrote:
What I need to include in ESP's EFI\Boot\Gentoo(Not yet created but I saw somewhere that it's needed)?

rEFInd will scan the entire ESP (EFI System Partition) for efi executables and offer them in the boot menu. You don't need to create a hierarchy unless you want, or need, to seperate things. You may want to create a 'refind_linux.conf' in the same directory as the kernel/initramfs ... this will allow you to provide boot parameters to the kernel.

refind_linux.conf
Code:
"Boot softlevel default"  "quiet ro nopat threadirqs video.use_native_backlight=1 rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap"
"Boot softlevel single"  "quiet ro nopat threadirqs video.use_native_backlight=1 rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap softlevel=single"

At boot F2 will provide a menu to switch parameters. Note that without a refind_linux.conf you will need to configure parameters via CONFIG_CMDLINE ... so, not as flexible.

mirko28 wrote:
Do I need to make entry in refind.conf, or it will automatically recongnize?

No entry is needed, but the only kernels automatically offered will be those suffixed with '.efi'

HTH & best ... khay
Back to top
View user's profile Send private message
mirko28
n00b
n00b


Joined: 03 Aug 2015
Posts: 6
Location: Montenegro

PostPosted: Thu Aug 06, 2015 10:01 am    Post subject: Reply with quote

Thanks guys! I did it, the problem was prefix, I have renamed kernel to vmlinuz.... This is solution for my situation http://www.rodsbooks.com/refind/linux.html#reconfigure.
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