summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--61-bcache.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/61-bcache.rules b/61-bcache.rules
index 3a45249..22c1a90 100644
--- a/61-bcache.rules
+++ b/61-bcache.rules
@@ -13,6 +13,8 @@ SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="bcache", \
# Cached devices: symlink
DRIVER=="bcache", ENV{CACHED_UUID}=="?*", \
SYMLINK+="bcache/by-uuid/$env{CACHED_UUID}"
+DRIVER=="bcache", ENV{CACHED_LABEL}=="?*", \
+ SYMLINK+="bcache/by-label/$env{CACHED_LABEL}"
LABEL="bcache_end"