aboutsummaryrefslogtreecommitdiff
path: root/templates/kvm.rules.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/kvm.rules.erb')
-rw-r--r--templates/kvm.rules.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/kvm.rules.erb b/templates/kvm.rules.erb
new file mode 100644
index 0000000..8267d90
--- /dev/null
+++ b/templates/kvm.rules.erb
@@ -0,0 +1,3 @@
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= scope.lookupvar('::hostname') %>-<%= @name %>", GROUP="<%= @name %>"
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= @name %>", GROUP="<%= @name %>"
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= @name %>1", GROUP="<%= @name %>"