Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initrd creation tool
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grey_dot
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2012
Posts: 142

PostPosted: Mon Sep 09, 2013 9:29 am    Post subject: initrd creation tool Reply with quote

Genkernel and dracut just suck. The first one sucks because it fails to create a useful ramdisk, the latter one is just ugly and bloated, and it frequently fails to boot (say hi to lvm partial mode, ouch!). Mkinitcpio from arch guys was useful, until they switched to systemd, and mkinitcpio was rendered incompatible with any other init. Though I've seen some work on it by a guy named udeved on this forum, I failed to find a working ebuild anywhere. Sure I could use a small init script to mount root from initrd and switch to it, but I really would like to have a simple working solution. Any suggestions? Its 2013 already, and gentoo doesnt have such a basic tool. Thanks in advance.
Back to top
View user's profile Send private message
grey_dot
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2012
Posts: 142

PostPosted: Mon Sep 09, 2013 9:40 am    Post subject: Re: initrd creation tool Reply with quote

grey_dot wrote:
I failed to find a working ebuild anywhere.


https://github.com/udeved/ebuilds/tree/master/sys-kernel/mkinitcpio
found this. I'll try to test it and write about results here (if this thread survives long enough).
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Mon Sep 09, 2013 9:41 am    Post subject: Reply with quote

It has at least 2 tools. genkernel and dracut. dracut works for me just fine. If both dont match your need, make your own, but please dont request from others to serve you.
Back to top
View user's profile Send private message
grey_dot
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2012
Posts: 142

PostPosted: Mon Sep 09, 2013 9:47 am    Post subject: Reply with quote

schorsch_76 wrote:
It has at least 2 tools. genkernel and dracut.

I mentioned them in OP.

schorsch_76 wrote:
dracut works for me just fine.

Really glad for you. Nonetheless it doesn't work for me.

schorsch_76 wrote:
please dont request from others to serve you.


Do I? I have just asked for an advice, nothing more. Although if you insist... OBEY AND SERVE ME, YOU MISERABLE SLAVE!!! :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Sep 09, 2013 2:01 pm    Post subject: Reply with quote

grey_dot,

I like the kernel provided script, which is also documented on the Gentoo Wiki
No black magic like dracut and genkernel, you retain complete control.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grey_dot
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2012
Posts: 142

PostPosted: Tue Sep 10, 2013 10:03 am    Post subject: Reply with quote

NeddySeagoon wrote:
grey_dot,

I like the kernel provided script, which is also documented on the Gentoo Wiki
No black magic like dracut and genkernel, you retain complete control.


Unfortunately, this doesn't work for me since I use a bit more complex setups involving RAID, LVM, LUKS, etc. Tweaking shell scripts for each machine I have will drive me crazy.

p.s. I gathered some patches adapting mkinitcpio to work on gentoo. My laptop (luks+lvm) boots fine, though I had to add 'modprobe reiserfs' into initrd init script because udev fails to load the module. I'll try to solve this issue later. Everything else just works. The code is here https://bitbucket.org/braindamaged/mkinitcpio-gentoo/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Tue Sep 10, 2013 11:21 am    Post subject: Reply with quote

grey_dot,

I use raid and lvm too.

You only build the initrd once per machine, unless something fundamental changes, so it becomes like firmware.
I don't have any kernel modules in my initrd.

If you are concerned about hard coding UUIDs, you can pass them via the kernel line, so you don't even need to edit the init scripts from one system to another.
Of course, parsing the kernel line is extra work but you only need to write the code for that once.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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