Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

So, I'm trying to split my initrd into two initrd's. There's some pretty significant scripts that run in the initrd, and we wanted to split the initrd so we could rev the just the logic or just the kernel portion.

As a single initrd, it boots fine. But, when I split it into two, I get an error:

RAMDISK: incomplete write (-28 != 8388608)

The grub menu entry's initrd looks like:

initrd /initramfs-scripts.img /initramfs-kernel.img

I can't find any documentation on using two initrd's. All I have found so far are this: stackexchange question, and this: grub bug. But, it doesn't give me an idea about what I'm doing wrong.

share|improve this question
    
could it be that the -scripts.img and kernel.img should be in opposite order? –  UldisK Nov 2 '12 at 19:40
    
I don't see why. It was my understanding, that the two images get extracted one after the other, and then run. And their files don't overlap. The kernel one is just /lib/modules –  kjprice Nov 2 '12 at 21:50

1 Answer 1

up vote 0 down vote accepted

I'm not sure if this qualifies as a complete answer, but there's some weird behavior with pygrub and initramfs's. It seems to append a few bytes to the end. The bytes are zeroed, so cpio wouldn't care about them. However, we encrypt the initramfs, so the decryption algorithm does.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.