Porting initramfs-tools to dracut

Andrew Lutomirski luto at mit.edu
Wed Nov 5 01:42:10 UTC 2014

On Tue, Nov 4, 2014 at 5:35 PM, Saurabh Kulkarni <srk892 at gmail.com> wrote:
> Hi there,
> So I've been working on a project that requires me to have my own custom
> initrd. The doc I'm following is specialized for ubuntu, so it makes use of
> mkinitramfs to create initrd, and uses initramfs-tools/scripts and
> initramfs-tools/hooks for serving its purpose. I tried using dracut to
> create a ramdisk, but I cannot figure out how should I incorporate
> additional scripts and hooks into the same. I tried extending a dracut
> module (00bash) by adding *inst_hook cmdline 20 "path to the script" * but
> that doesn't seem to help.

How custom?  What are you trying to do?  Are you trying to boot in an
environment that needs hardware-dependent drivers loaded or is the
environment controlled enough that you don't need all that fanciness.

I'm asking because this thing, while not currently intended for
external use, can generate working initramfses very very quickly and
with so little code that you can see what's going on in a minute or



More information about the devel mailing list