summaryrefslogtreecommitdiff
path: root/rules.d
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-13 23:04:47 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-14 00:11:57 +0900
commit0224c31ea397011ab4b9f43a90fc9553272f36d5 (patch)
tree0ee3c0fd561873733eeb40f727f0e97e700ee293 /rules.d
parent03b894fc09473068f706ccf063c89ec2c3a78a4c (diff)
downloadsystemd-0224c31ea397011ab4b9f43a90fc9553272f36d5.tar.gz
udev: do not create disk/by-diskseq symlink when ID_IGNORE_DISKSEQ property is set
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 4eb911b37c..de08428207 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", ENV{DISKSEQ}=="?*", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}"
+ENV{DISKSEQ}=="?*", ENV{DEVTYPE}!="partition", ENV{DISKSEQ}=="?*", ENV{ID_IGNORE_DISKSEQ}!="1", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}"
LABEL="persistent_storage_end"