Manually checked on a physical node with 1 device after replacing changed curtin files on a MAAS node (the code isn't in -proposed yet at the time of writing), seems to work:
ubuntu@redacted:~$ blkid /dev/sda1: LABEL="root" UUID="2b708114-354c-4ece-9d2e-3b7c202cbf17" TYPE="ext4" PARTUUID="18b7f148-01"
ubuntu@redacted:~$ tree /dev/disk/by-dname/ /dev/disk/by-dname/ ├── sda -> ../../sda ├── sda-part1 -> ../../sda1 └── sdb -> ../../sdb
0 directories, 3 files
ubuntu@emere:~$ ls -al /dev/disk/by-id/ | grep sdb lrwxrwxrwx 1 root root 9 Dec 3 14:14 scsi-3600508b1001c914bbd22b1f25777ef8c -> ../../sdb lrwxrwxrwx 1 root root 9 Dec 3 14:14 wwn-0x600508b1001c914bbd22b1f25777ef8c -> ../../sdb
ubuntu@emere:~$ cat /etc/udev/rules.d/sdb.rules # Written by curtin SUBSYSTEM=="block", ACTION=="add|change", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="3600508b1001c914bbd22b1f25777ef8c", ENV{ID_WWN_WITH_EXTENSION}=="0x600508b1001c914bbd22b1f25777ef8c", SYMLINK+="disk/by-dname/sdb"
SUBSYSTEM=="block", ACTION=="add|change", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="3600508b1001c914bbd22b1f25777ef8c", ENV{ID_WWN_WITH_EXTENSION}=="0x600508b1001c914bbd22b1f25777ef8c", SYMLINK+="disk/by-dname/sdb-part%n"
I'll try to get a node with an NVMe device (or create a virtual one) and check there as well.
Manually checked on a physical node with 1 device after replacing changed curtin files on a MAAS node (the code isn't in -proposed yet at the time of writing), seems to work:
ubuntu@redacted:~$ blkid 354c-4ece- 9d2e-3b7c202cbf 17" TYPE="ext4" PARTUUID= "18b7f148- 01"
/dev/sda1: LABEL="root" UUID="2b708114-
ubuntu@redacted:~$ tree /dev/disk/by-dname/
/dev/disk/by-dname/
├── sda -> ../../sda
├── sda-part1 -> ../../sda1
└── sdb -> ../../sdb
0 directories, 3 files
ubuntu@emere:~$ ls -al /dev/disk/by-id/ | grep sdb 01c914bbd22b1f2 5777ef8c -> ../../sdb 01c914bbd22b1f2 5777ef8c -> ../../sdb
lrwxrwxrwx 1 root root 9 Dec 3 14:14 scsi-3600508b10
lrwxrwxrwx 1 root root 9 Dec 3 14:14 wwn-0x600508b10
ubuntu@emere:~$ cat /etc/udev/ rules.d/ sdb.rules ="add|change" , ENV{DEVTYPE} =="disk" , ENV{ID_ SERIAL} =="3600508b1001 c914bbd22b1f257 77ef8c" , ENV{ID_ WWN_WITH_ EXTENSION} =="0x600508b100 1c914bbd22b1f25 777ef8c" , SYMLINK+ ="disk/ by-dname/ sdb"
# Written by curtin
SUBSYSTEM=="block", ACTION=
SUBSYSTEM=="block", ACTION= ="add|change" , ENV{DEVTYPE} =="partition" , ENV{ID_ SERIAL} =="3600508b1001 c914bbd22b1f257 77ef8c" , ENV{ID_ WWN_WITH_ EXTENSION} =="0x600508b100 1c914bbd22b1f25 777ef8c" , SYMLINK+ ="disk/ by-dname/ sdb-part% n"
I'll try to get a node with an NVMe device (or create a virtual one) and check there as well.