Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel initramfs for non genkernel 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
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 367

PostPosted: Mon Mar 04, 2013 5:08 pm    Post subject: Genkernel initramfs for non genkernel kernel? Reply with quote

Hi all,

Not sure if this is the appropriate place - please feel free to move this if necessary. I was just wondering if genkernel can be used to create an initramfs for a working kernel I made without genkernel? I am experimenting with ZFS, and I have everything in place in my current kernel except the initramfs. Can I just make an initramfs using genkernel initramfs (options) that will work with my current kernel, or does my kernel also have to be generated by genkernel for the two to work together?

Thanks!
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1265

PostPosted: Mon Mar 04, 2013 5:45 pm    Post subject: Reply with quote

You can, however I would recommend using the no modules option as those can get messy. I recommend consulting the documentation for syntax. I keep a copy on hand in case my standard initramfs fails.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 04, 2013 7:01 pm    Post subject: Reply with quote

Moved from Unsupported Software to Kernel & Hardware as the topic is supported software.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 367

PostPosted: Mon Mar 04, 2013 8:38 pm    Post subject: Reply with quote

Ahh - thanks for pointing those out to me - the only question I have is about no modules - I am using ZFS - so I think I would at least have to include those modules, since they aren't part of the kernel due to licensing. One thing I think I will try first is creating a new kernel (ready to move to 3.8.1) with genkernel, but configure it with menuconfig and have it build the initramfs.

Thanks!
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 396
Location: San Diego, California USA

PostPosted: Mon Mar 04, 2013 9:49 pm    Post subject: Reply with quote

You can use the genkernel initramfs with your own kernel. I compile, configure, and install gentoo-sources by hand but use the genkernel initramfs. It should be fine.

But keep in mind that if you need something special for the root filesystem (like the ZFS module, etc), then the genkernel initramfs probably won't work out of the box.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 04, 2013 10:09 pm    Post subject: Reply with quote

See Adding additional modules to initramfs using genkernel. :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
ryao
Developer
Developer


Joined: 27 Feb 2012
Posts: 118

PostPosted: Mon Mar 18, 2013 7:21 pm    Post subject: Reply with quote

The Doctor wrote:
You can, however I would recommend using the no modules option as those can get messy. I recommend consulting the documentation for syntax. I keep a copy on hand in case my standard initramfs fails.


If something goes wrong when modules are included in the initramfs, please file a bug report.

With that said, I do not think --no-modules is appropriate here.
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