Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dracut config problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Mon Aug 19, 2013 3:46 pm    Post subject: Dracut config problem Reply with quote

In order to try and resolve my long-standing systemd problem I thought I would try dracut instead of genkernel since many people seem to use it and it has support for systemd. I have set :
Code:
DRACUT_MODULES="lvm systemd dmraid syslog debug"

and emerged the package. I ran "dracut -f", left /etc/dracut.conf as default and configured grub with the stanza:
Code:

title Gentoo Linux 3.10.5 systemd
root (hd0,5) kernel /boot/vmlinuz-3.10.5-gentoo root=/dev/vg00/rootfs init=/usr/bin/systemd vga=0x0361 quiet CONSOLE=/dev/tty1
initrd /boot/initramfs-3.10.5-gentoo.img

The root file system is reiserfs which is built into the kernel, so no modules are required (I hope). When I boot, the screen clears and absolutely nothing else happens! Excellent stuff. I assume I have missed something basic but it is not obvious to me what.

TIA
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1522

PostPosted: Mon Aug 19, 2013 4:57 pm    Post subject: Reply with quote

Maybe you need build the ramfs passing the parameter --filesystems "reiserfs" to the dracut command. See dracut from gentoo wiki: http://wiki.gentoo.org/wiki/Dracut#Other_Filesystems
Back to top
View user's profile Send private message
poncho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2011
Posts: 92

PostPosted: Mon Aug 19, 2013 4:58 pm    Post subject: Reply with quote

On my system, dracut failed to autodetect that I use lvm volumes.

I had to add the module explicitly in /etc/dracut.conf:

Code:
# dracut modules to add to the default
add_dracutmodules+="lvm"
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Mon Aug 19, 2013 5:11 pm    Post subject: Reply with quote

Thanks to you both for the prompt answers, I will try both suggestions. But doesn't the thing issue any error messages?
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1522

PostPosted: Mon Aug 19, 2013 5:46 pm    Post subject: Reply with quote

Try a kernel command line simplest. Something like:
Code:
root (hd0,5) kernel /boot/vmlinuz-3.10.5-gentoo root=/dev/vg00/rootfs init=/usr/bin/systemd
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Aug 20, 2013 6:36 am    Post subject: Reply with quote

Removing the "quiet" and "console" parameters from the kernel line got lots of output. You get a mass of systemd and kernel messages until it reaches "Basic System target" and then it stops. After a wait you drop to a prompt and discover it has failed to mount the root file system. The VG is active, just nothing mounted, not dissimilar to genkernel. I will try tonight with lvmetad active.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Aug 20, 2013 3:25 pm    Post subject: Reply with quote

The VG has not been activated. Any idea why not?
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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