Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
os-prober won't find fedora
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ozzy468
n00b
n00b


Joined: 27 Jan 2022
Posts: 17

PostPosted: Sat Apr 09, 2022 5:19 pm    Post subject: os-prober won't find fedora Reply with quote

hi all,
I want to install SELinux on gentoo, and I thought it would be a good idea to install a SELinux enabled linux alongside. So I choose fedora. For some reason, os-prober won't find it, whilst finding other distros. I am using grub, and the boot type is "legacy".
fedora will be found, if I install grub from it, or from other linux as well.
Thanks
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Apr 09, 2022 5:29 pm    Post subject: Reply with quote

Can you plz show a layout of your disks including fedora?
In case you are unsuccessful no matter what plz use
Code:

/etc/grub.d/40_custom

to create custom grub entry for fedora.
My guess is fedora installer used lvm and in Gentoo you dont have it.
But maybe irrelevant.
Is fedora /boot on lvm?
Quote:

and the boot type is "legacy".

you mean non-uefi?
Another idea is to build grub with USE="device-mapper"
_________________
:)
Back to top
View user's profile Send private message
ozzy468
n00b
n00b


Joined: 27 Jan 2022
Posts: 17

PostPosted: Sat Apr 09, 2022 6:17 pm    Post subject: Reply with quote

Quote:
you mean non-uefi?

yes.

The mainboard supports uefi, but it didn't work. It's quite old, probably from a "transformation" time. I remember, I had to force-install to mbr.

Quote:
Another idea is to build grub with USE="device-mapper"

That didn't do it.

Quote:
fedora /boot on lvm?

not, that I know of. Never tested raid or lvm. But I don't know, if this came up during the setup.
under /boot/ there is an efi directory, and it's not empty:
EFI/
mach_kernel
System/


fdisk -l

/dev/sdd1 2048 62500863 62498816 29,8G 82 Linux Swap / Solaris
/dev/sdd2 62500864 250069679 187568816 89,4G 83 Linux
that's gentoo

/dev/sdb1 2048 63487 61440 30M 82 Linux Swap / Solaris
/dev/sdb2 63488 975868315 975804828 465,3G 83 Linux
/dev/sdb3 * 975869952 1953523711 977653760 466,2G 83 Linux
and this is the "spare drive"

on sdb3 I installed kali (debian derived) to have a non-enforcing kernel.
sdb2 is the fedora install.

other drives are just data. And I must have mistyped on the 2nd swap :-)
Back to top
View user's profile Send private message
ozzy468
n00b
n00b


Joined: 27 Jan 2022
Posts: 17

PostPosted: Tue Apr 19, 2022 8:06 pm    Post subject: os-prober won't find fedora [solved] Reply with quote

fixed by the magic updating elf. Thanks!
@alamahant
didn't thank you for your post; I was too busy gathering infos and testing your reply. So thanks to you, too, for the ideas.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Fri Apr 22, 2022 4:01 am    Post subject: Reply with quote

I've been following this with interest. Glad it's solved, but I don't understand what "fixed by the magic updating elf" means. What was wrong and what changes fixed it?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
ozzy468
n00b
n00b


Joined: 27 Jan 2022
Posts: 17

PostPosted: Fri Apr 22, 2022 12:08 pm    Post subject: Reply with quote

the magic elf - the last emerge -auND @world pulled in a new version of os-prober (1.79-r2), and this one "finds" fedora. So I guess, someone must have fixed it :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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