You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
663 B
20 lines
663 B
# hacky rules to try to activate lvm when we get new block devs... |
|
# |
|
# Copyright 2008, Red Hat, Inc. |
|
# Jeremy Katz <katzj@redhat.com> |
|
|
|
|
|
SUBSYSTEM!="block", GOTO="lvm_end" |
|
ACTION!="add|change", GOTO="lvm_end" |
|
KERNEL!="dm-*", GOTO="lvm_end" |
|
|
|
IMPORT{program}="/sbin/blkid -o udev -p $tempnode" |
|
|
|
ENV{ID_FS_TYPE}=="LVM2_member", RUN+="/bin/sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -ay'" |
|
|
|
OPTIONS="link_priority=-100" |
|
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="lvm_end"
|
|
|