From: Lennart Poettering Date: Wed, 21 Dec 2022 11:24:41 +0000 (+0100) Subject: udev: also create partition /dev/disk/by-diskseq/ symlinks X-Git-Tag: v253-rc1~220^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=583dc6d933d8eb84f338c28cbe2f4c86ee1ff069;p=thirdparty%2Fsystemd.git udev: also create partition /dev/disk/by-diskseq/ symlinks --- diff --git a/rules.d/60-persistent-storage.rules b/rules.d/60-persistent-storage.rules index 18588e4c454..86e0165b0b0 100644 --- a/rules.d/60-persistent-storage.rules +++ b/rules.d/60-persistent-storage.rules @@ -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"