Problem: During The Linux Boot, I want to know a certain instance of time, when all the block devices have been enumerated. I assume the block devices are NOT coming via a network( like iscsi), but come via FC, and could even be "multipath devices".
What I know:
If write a some script and set it up like
kernel.hotplug=MyScript and place it at /etc/sysconfig/MyScript.modules (notice the .modules extension).
I will get the devpath names of the devices being enumerated.
But this approach is not efficient.
Example : I want to act on the block devices have a different type of signature.
But, MyScript will get called all the times whenever any block device will be added to the system ( specifically whenever any kobject will be created/removed).
What I want do is:
Another instance in the boot sequence when I know that all the block devices attached are available, so that I can just find the block devices I like and do something I want with them.
Also, Notice that, I cannot wait till the xyz.service are enabled, which is quite late in the boot sequence.
Edit : Assume no systemd. Linux uses the old(init) way of booting.