From 0224c31ea397011ab4b9f43a90fc9553272f36d5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 13 Apr 2022 23:04:47 +0900 Subject: udev: do not create disk/by-diskseq symlink when ID_IGNORE_DISKSEQ property is set --- rules.d/60-persistent-storage.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.d') 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" -- cgit v1.2.1