Re: [gentoo-user] Building an initramfs into the kernel

2012-12-28 Thread Neil Bothwick
On Thu, 27 Dec 2012 09:33:48 -0800, Mark Knecht wrote: >One more question if I might. What's the simplest way to regenerate > the kernel when there are no kernel changes but you have changes to > the programs that are going into the initramfs? make clean seems like > overkill to me, and it's v

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-28 Thread Mark Knecht
On Thu, Dec 27, 2012 at 3:24 PM, Mark Knecht wrote: > On Thu, Dec 27, 2012 at 9:33 AM, Mark Knecht wrote: >> On Wed, Dec 26, 2012 at 3:50 PM, Mark Knecht wrote: >>> On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick wrote: On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: > At th

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-27 Thread Mark Knecht
On Thu, Dec 27, 2012 at 9:33 AM, Mark Knecht wrote: > On Wed, Dec 26, 2012 at 3:50 PM, Mark Knecht wrote: >> On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick wrote: >>> On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: >>> At this point I don't know that 1) the image is actually in the >

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-27 Thread Mark Knecht
On Wed, Dec 26, 2012 at 3:50 PM, Mark Knecht wrote: > On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick wrote: >> On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: >> >>> At this point I don't know that 1) the image is actually in the >>> kernel, or 2) that my "init thingy" ;-) image would work

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Mark Knecht
On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick wrote: > On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: > >> At this point I don't know that 1) the image is actually in the >> kernel, or 2) that my "init thingy" ;-) image would work, but at least >> the process of putting it together is ver

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Neil Bothwick
On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: > At this point I don't know that 1) the image is actually in the > kernel, or 2) that my "init thingy" ;-) image would work, but at least > the process of putting it together is verifiable. That's why I put in all the debug stuff, so I could

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Neil Bothwick
On Wed, 26 Dec 2012 12:48:38 -0800, Mark Knecht wrote: > On the mdadm list one comment came up which was to make sure > my mdadm.conf file was up to date and then include it in the initramfs > image so that if for some reason the machine doesn't boot I have all > the info required to start the RAI

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Mark Knecht
On Wed, Dec 26, 2012 at 1:49 PM, Mark Knecht wrote: > Actually, I think the initramfs wiki covers this, albeit it's 'not > easy'. Their words. > > I think I'm covered for now. > > Cheers, > Mark While extracting it from the kernel image may be involved, and for now using Neil's example init scri

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Mark Knecht
On Wed, Dec 26, 2012 at 12:48 PM, Mark Knecht wrote: > One other question came up. So I build the kernel, and the kernel build > creates the initramfs image and embeds it in the kernel. Is there a tool > that would allow me to query the embedded image prior to booting > so that I can check that e

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Mark Knecht
On Wed, Dec 26, 2012 at 9:09 AM, Neil Bothwick wrote: > On Wed, 26 Dec 2012 07:58:34 -0800, Mark Knecht wrote: > >> 2) Contained executables, as I understand them, either need to be >> built with the static flag or you have to include all the libraries. >> Static seems simpler so (in my case) sho

Re: [gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Neil Bothwick
On Wed, 26 Dec 2012 07:58:34 -0800, Mark Knecht wrote: >OK, it's the day after Christmas and this little kid wants to play > with the new toys Uncle Neil gave us yesterday - a copy of his well > worn setup file for building an initramfs into the kernel - a copy of > which I place here: > > [Q

[gentoo-user] Building an initramfs into the kernel

2012-12-26 Thread Mark Knecht
Hi, OK, it's the day after Christmas and this little kid wants to play with the new toys Uncle Neil gave us yesterday - a copy of his well worn setup file for building an initramfs into the kernel - a copy of which I place here: [QUOTE] This is the file I use on a system that has / on a LUKS f