Modular initrd [was Re: [PATCH] mkinitrd rescue mode]

Loris Santamaria loris at cantv.net
Wed Aug 17 15:52:35 UTC 2005


What about a modular initrd, similar to what is fond in Debian? 

Recently I had to patch the mkinitrd script to add support for the
swsuspend2 patch, and later I had to patch the script again to support
the i855resolution utility to properly resume from hibernation.

Maybe there could be an /etc/initrd directory with a structure like
this:

/etc
  |
  ---initrd/
        |
        |--bin/
        |--modules
        ---scripts/
              |
              |--10makedev.sh
              |--20modules.sh
              |--30raid.sh
              |--40lvm.sh
              |--50rescue.sh
              ---90pivot.sh

so one could easily add extra utilities, modules and scripts to that
directory structure, and the mkinitrd script could build the initrd
based on the contents of the directory. No more mkinitrd patching
required.

Loris







More information about the devel mailing list