From: Yu Watanabe Date: Sun, 10 Apr 2022 16:42:59 +0000 (+0900) Subject: udev: create disk/by-diskseq symlink only when the device has diskseq X-Git-Tag: v251-rc2~128^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d97d4c90f8ca7420ce1717bf790f5e028ec057;p=thirdparty%2Fsystemd.git udev: create disk/by-diskseq symlink only when the device has diskseq Follow-up for 0d08db7f89ee665a9dcb6dd66c1f9e203192e8ec. --- diff --git a/rules.d/60-persistent-storage.rules b/rules.d/60-persistent-storage.rules index 23f43e4f976..4eb911b37cc 100644 --- a/rules.d/60-persistent-storage.rules +++ b/rules.d/60-persistent-storage.rules @@ -124,6 +124,6 @@ ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/ # by-diskseq link (if an app is told to open a path like this, they may parse # 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", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}" +ENV{DISKSEQ}=="?*", ENV{DEVTYPE}!="partition", ENV{DISKSEQ}=="?*", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}" LABEL="persistent_storage_end"