Skip to main content
Source Link
Cobra_Fast
  • 472
  • 1
  • 6
  • 16

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands.

Where would I need to put such a script and what format does it need to have?

I cannot find any useful documentation by googling.

Running Fedora 17, Kernel 3.9.10.