dracut - custom module

asked 2013-10-26 23:17:41 -0600

Walter White gravatar image

updated 2014-09-28 18:17:07 -0600

mether gravatar image

Hi all,

I am attempting to use dm snapshot to make a root image read-write. I started with the dmsquash-live as a starting point to make modifications so that I can build the system to my like which allows me to partition differently that the dmsquash-live module.

I'm having difficulty getting my hook to run in the proper sequence. It runs just before crypt which means the device it is expecting doesn't yet exist. I modified the genrules.sh file to call wait_for_dev, but I'm not so sure that is working. I also tried modifying the main script by adding wait_for_dev, but it doesn't appear to do anything.

What do I need to do to ensure that the device I'm expecting exists before the script / hook is run?

Thanks,

Walter

edit retag flag offensive close merge delete