I'm creating UDEV rules for automounting external drives on a headless server, much in the same way as Gnome-VFS does automounting during a user session.
I'm concerned with the rule's behavior at boot-time. There's a good chance one of these drives will be connected during a boot, and I'd prefer any connected drives get mounted in the right place. The drives might be either USB or Firewire, and they are mounted from a shell script fired off by UDEV on detecting an "add".
Here are my questions:
When UDEV runs the
mountfor these devices at boot, will the system be ready to mount it? Or will the script get triggered too early?
If it's too early, what's a good way for a script to tell that the system isn't ready yet (so sleep a while before checking again)?
The UDEV rule matches
ACTION=="add". Does this event even fire at system boot?