~ubuntu-branches/debian/stretch/waagent/stretch

« back to all changes in this revision

Viewing changes to config/66-azure-storage.rules

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2016-08-24 16:48:22 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20160824164822-vdf8m5xy5gycm1cz
Tags: 2.1.6-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ACTION!="add|change", GOTO="azure_end"
 
2
SUBSYSTEM!="block", GOTO="azure_end"
 
3
ATTRS{ID_VENDOR}!="Msft", GOTO="azure_end"
 
4
ATTRS{ID_MODEL}!="Virtual_Disk", GOTO="azure_end"
 
5
 
 
6
# Root has a GUID of 0000 as the second value
 
7
# The resource/resource has GUID of 0001 as the second value
 
8
ATTRS{device_id}=="?00000000-0000-*", ENV{fabric_name}="root", GOTO="azure_names"
 
9
ATTRS{device_id}=="?00000000-0001-*", ENV{fabric_name}="resource", GOTO="azure_names"
 
10
GOTO="azure_end"
 
11
 
 
12
# Create the symlinks
 
13
LABEL="azure_names"
 
14
ENV{DEVTYPE}=="disk", SYMLINK+="disk/azure/$env{fabric_name}"
 
15
ENV{DEVTYPE}=="partition", SYMLINK+="disk/azure/$env{fabric_name}-part%n"
 
16
 
 
17
LABEL="azure_end"
 
18