[blfs-dev] initramfs

Bruce Dubbs bruce.dubbs at gmail.com
Tue Feb 21 12:26:33 PST 2012


Jeremy Huntwork wrote:
> On 2/21/12 3:03 PM, Jeremy Huntwork wrote:
>> On 2/21/12 2:49 PM, Bruce Dubbs wrote:
>>>> As an example, look at this init:
>>>>
>>>> https://github.com/jhuntwork/LightCube-OS/blob/master/packages/mkinitramfs/init.in
>>>>
>>> Well that's certainly easier than dracut. I would want to add UUID and
>>> LABEL capabilities.
>> Actually, the UUID stuff "just works" the last I checked. You simply
>> have to use the UUID="..." in /etc/fstab and root=UUID=... in the boot
>> prompt. It used to be that grub-mkconfig would generate that correctly
>> if your images were appropriately named. Haven't tested it lately.
> 
> If you want to give it a test run, you could build a kernel with modules 
> for all the file systems and all root devices (you can't quite do 
> allmodconfig, there's some options the kernel allows as modules that 
> udev needs - well, you could, but you'd have to specifically load those 
> first in the init). You could start with something like this, which uses 
> modules wherever possible:
> 
> https://github.com/jhuntwork/LightCube-OS/blob/master/packages/linux/linux-config.x86_64
> 
> It's for 2.6.39.3, so you may need to use 'make oldconfig first'. Build 
> that, install it, use the mkinitramfs script and try booting into it 
> with the initrd line and your UUID settings, see if it works for you.

I'll take a look at that.  I've got some personal things going on that 
may keep me from diving into this right away, but I should be able to do 
some experimentation along the lines you suggest later this week.

Thanks for the input.

   -- Bruce



More information about the blfs-dev mailing list