20.11.2015 20:08, aaron_wri...@selinc.com пишет:
I have a script that creates a partition (using pyparted) and then tries
to format it (using mkfs.ext4). Most of the time this works OK. However,
sometimes the format fails because it can't find the device. There seems
to be a race condition due to a delay between creating a partition and the
device node in /dev being created.
Is there a tool in udev or udevadm that can help my script know when it
safe to proceed?


If you want to be on safe side, the only safe way is probably to listen to kernel or udev events and wait until events for partitions appear.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to