Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] grub-mkconfig hangs
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
xanderal
n00b
n00b


Joined: 06 Mar 2019
Posts: 46
Location: Germany

PostPosted: Tue Apr 16, 2019 3:26 am    Post subject: [SOLVED] grub-mkconfig hangs Reply with quote

Hi,
I'm trying to do a fresh install of gentoo. Up until grub everything worked as it should.
But on
Code:
grub-mkconfig -o /boot/grub/grub.cfg

nothing happens for a couple minutes, then I get
Code:
Generating grub configuration file ...

and after even more time I get
Code:
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
WARNING: Device /dev/ram0 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/loop0 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/sda not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/mapper/rootfs not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/ram1 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/sda1 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/vg1/swap not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/ram2 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/sda2 not initialized in udev database even after waiting 100000000 microseconds.
WARNING: Device /dev/vg1/root not initialized in udev database even after waiting 100000000 microseconds.
...
(and that keeps going for a while - I just end it with Ctrl+c)
When I installed gentoo last month I didn't have that problem and I more or less (yes, I know but I only changed the kernel slightly - so shouldn't be that much of a problem?) did the same stuff again.
I got the problem on the 20190403 and the 20190410 minimal-cds and I tried several times over the last few days.
Any idea what I can do to fix this?
There are (mostly archlinux-)threads about this and they recommend
Code:
mkdir /mnt/gentoo/hostlvm
mount --bind /run/lvm /mnt/gentoo/hostlvm
chroot /mnt/gentoo /bin/bash
ln -s /hostlvm /run/lvm

tried that, didn't work.
I also found https://forums.gentoo.org/viewtopic-t-976986-start-0.html from 2013, so I installed os-prober but that didn't work, either.
Did I miss something obvious?

EDIT: I found the solution: https://wiki.gentoo.org/wiki/GRUB2#os-prober_and_UEFI_in_chroot Now it works.
Back to top
View user's profile Send private message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 169

PostPosted: Tue Apr 16, 2019 1:37 pm    Post subject: Reply with quote

i had exactly the same problem - you can't mount /run/lvm with mimimal CD - because it's not booting with systemd.
just leave it running for a couple of hours - it will be done, eventually.
With the latest miminal CD (i used 20190410) - i didn't faced this problem
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