]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: also create partition /dev/disk/by-diskseq/ symlinks
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2022 11:24:41 +0000 (12:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Dec 2022 11:42:37 +0000 (12:42 +0100)
rules.d/60-persistent-storage.rules

index 18588e4c45465be8bc8c8a6666a5ec7a340536b9..86e0165b0b087a4a24b91c0568232f3acd2885da 100644 (file)
@@ -137,5 +137,6 @@ ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/
 # the diskseq number from the path, then issue BLKGETDISKSEQ to verify they really got
 # the right device, to access specific disks in a race-free fashion)
 ENV{DISKSEQ}=="?*", ENV{DEVTYPE}!="partition", ENV{DISKSEQ}=="?*", ENV{ID_IGNORE_DISKSEQ}!="1", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}"
+ENV{DISKSEQ}=="?*", ENV{DEVTYPE}=="partition", ENV{DISKSEQ}=="?*", ENV{ID_IGNORE_DISKSEQ}!="1", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}-part%n"
 
 LABEL="persistent_storage_end"