summaryrefslogtreecommitdiffstats
path: root/01-memdisk.rules
blob: 0a8fd7bc64d0094b8a83ec88eeb6790bfabf5465 (plain)
1
2
3
4
5
6
7
8
9
10
11
ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="mtdblock*", ATTRS{name}=="memdisk", ATTRS{type}=="ram", GOTO="memdisk_start"
GOTO="memdisk_end"

LABEL="memdisk_start"

SYMLINK+="memdisk"
IMPORT{builtin}="blkid"
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

LABEL="memdisk_end"