summaryrefslogtreecommitdiff
path: root/rules.d
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-11 01:42:59 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-13 23:09:47 +0900
commit17d97d4c90f8ca7420ce1717bf790f5e028ec057 (patch)
tree5eb62e03831b9ec954c150acd3a294e13015478c /rules.d
parentc87c30780624df257ed96909a2286b2b933f8c44 (diff)
downloadsystemd-17d97d4c90f8ca7420ce1717bf790f5e028ec057.tar.gz
udev: create disk/by-diskseq symlink only when the device has diskseq
Follow-up for 0d08db7f89ee665a9dcb6dd66c1f9e203192e8ec.
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/60-persistent-storage.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/60-persistent-storage.rules b/rules.d/60-persistent-storage.rules
index 23f43e4f97..4eb911b37c 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"