Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs lvm raid + gentoo kernel
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
Enrix
n00b
n00b


Joined: 13 Apr 2017
Posts: 1

PostPosted: Wed Apr 19, 2017 12:59 pm    Post subject: initramfs lvm raid + gentoo kernel Reply with quote

Hi everybody,

I am installing Gentoo and I would like to know how to prepare initramfs + lvm and raid 1 for the kernel.

Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Apr 19, 2017 1:39 pm    Post subject: Reply with quote

Enrix,

Welcome to Gentoo.

genkernel can do all of that, you pass it the right options, it builds the kernel, initrd and installs everything in the right places.
Code:
emerge genkernel
Then you can read the help or the man page to discover the right options.

After your kernel and initrd are installed, you will need to set up grub to load them.

The genkernel wiki page is worth reading too but it does not list all the options you need.
_________________
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
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Apr 25, 2017 1:08 pm    Post subject: Reply with quote

Hi Neddy! You've been so helpful thru the years, so when I decided it was time to update my kernels, I thought I would bounce it off of you first.

I have always built my own initrds from scratch, since back in the days of nash. :mrgreen:

I have all my gentoo boxes running the root filesystem under lvm so I can snapshot them to freeze the view of them when I make a backup. Some of these machines also run LUKS to fully encrypt the disk, and in some cases the rootfs is on a fully encrypted raid-1 mirror.

Is genkernel a reasonable way now days to build the initrd for such systems, or should I continue to use hand coded initrds?

Thanks! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Apr 25, 2017 1:42 pm    Post subject: Reply with quote

Moriah,

I still hand roll my initrds. They are only user space tools, so they are like firmware. Good for the life of the system.

I've never used genkernel since I was building kernels for several years before I started with Gentoo.
_________________
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