Comment 12 for bug 1735839

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

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.