Understanding the Linux boot process, subsystem initialization, & udev rules?
Posted
by quack quixote
on Server Fault
See other posts from Server Fault
or by quack quixote
Published on 2009-11-03T12:08:16Z
Indexed on
2010/03/31
4:13 UTC
Read the original article
Hit count: 349
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
mount
for 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?
© Server Fault or respective owner