[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Force device node link creation



Hello,

I am using a program for automatic creation of a harddisk partitioning from a configuration file. That file contains device names like /dev/sda1 etc. for naming the partitions. After the partitioning has been completed, I want to create an appropriate fstab from the configuration file and during that step, want to convert partition device name entries to entries in the form UUID=... For that, I am using

udevadm info --query=symlink --name="$device"

where $device is the respective partition. Unfortunaly, the problem occurs that often - though partitioning was completed and filesystems created - links in /dev/disk/by-uuid/ are not yet available when udevadm is run, so that udevadm returns nothing. So, my question is: Is it possible to force the device node links to have been created before calling udevadm? Without long sleeps or sleep loops?

Regards
  Christoph


Reply to: