support for Partition UUIDs in 60-persistent-storage.rules

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

 



Hi,
     I thought of using GPT Partition Unique GUIDs to reference
partitions instead of FS UUIDs since some filesystems do not support
proper UUIDs. Also haing a FS independent way of uniquely referencing
partitions has few advantages. This support requires just adding two
lines to http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob_plain;f=rules/rules.d/60-persistent-storage.rules;hb=HEAD
. These are supported by util-linux's blkid as of version 2.19 .

# by-part-label/by-part-uuid links (partition metadata)
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_UUID}=="?*",
SYMLINK+="disk/by-part-uuid/$env{ID_PART_ENTRY_UUID}"
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*",
SYMLINK+="disk/by-part-label/$env{ID_PART_ENTRY_NAME}"

Please add these lines to the file. Thanks in advance.

Regards.

Keshav
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux