Comment 1 for bug 1735839

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote : Re: feature request: /dev/by-dname symlinks based on GUID patition table UUIDs

For dname links and regular disk devices it looks like ID_PART_TABLE_UUID is already used:

https://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/curtin/commands/block_meta.py#L229
def make_dname(volume, storage_config):
...
    if vol.get('type') == "disk":
        rule.append(compose_udev_equality('ENV{DEVTYPE}', "disk"))
        rule.append(compose_udev_equality('ENV{ID_PART_TABLE_UUID}', ptuuid))

For other devices this is not present by default but they have other identification methods.

   elif vol.get('type') == "bcache":
        rule.append(compose_udev_equality("ENV{DEVNAME}", path))

Still, this is not usable for disks without partitions from MAAS.