I'm trying to learn how the initramfs works and how it may be configured. I would like curl to be added to the packages available in the initramfs, and run a script which uses curl during boot (which means the network has to be set up, before it).

How should I do it? (I need it to work when upgrading my kernel too.)

link|improve this question

44% accept rate
feedback

1 Answer

First thing you wanna know is that Ubuntu is using a system called Upstart instead of the traditional init. The initial ramdisk is still used, but you'll be reconfiguring upstart instead of init.

Second, are you wanting to do this entirely within the context of an initrd? If so, this would be much more complicated.

link|improve this answer
I actually new about Upstart, but thanks for the heads up. I have also learned that initrd isn't used with the 2.6 kernels, it's initramfs nowdays. And yes, I do want to do this inside the initramfs. What I am actually trying to do is more complicated than using curl, but it's a step in the right direction. I am trying to make it possible to login using SSH and provide the cryptphrase from my encrypted LVM. – Deleted Jun 20 '10 at 22:15
feedback

Your Answer

 
or
required, but never shown

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