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 markkne...@gmail.com wrote: On Thu, Dec 27, 2012 at 9:33 AM, Mark Knecht markkne...@gmail.com wrote: On Wed, Dec 26, 2012 at 3:50 PM, Mark Knecht markkne...@gmail.com wrote: On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick n...@digimed.co.uk wrote: On

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 very

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 markkne...@gmail.com wrote: On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick n...@digimed.co.uk 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

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 markkne...@gmail.com wrote: On Wed, Dec 26, 2012 at 3:50 PM, Mark Knecht markkne...@gmail.com wrote: On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 26 Dec 2012 14:09:34 -0800, Mark Knecht wrote: At this point I

[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

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: [QUOTE]

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 n...@digimed.co.uk 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

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 markkne...@gmail.com wrote: SNIP 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

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 markkne...@gmail.com wrote: SNIP 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

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 RAIDs

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 Mark Knecht
On Wed, Dec 26, 2012 at 3:03 PM, Neil Bothwick n...@digimed.co.uk 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