Skip to content

Commit

Permalink
udev: create disk/by-diskseq symlink only when the device has diskseq
Browse files Browse the repository at this point in the history
Follow-up for 0d08db7.
  • Loading branch information
yuwata committed Apr 13, 2022
1 parent c87c307 commit 17d97d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules.d/60-persistent-storage.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 17d97d4

Please sign in to comment.