23 lines
783 B
Plaintext
23 lines
783 B
Plaintext
# 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-[0-9]*", IMPORT{program}="vol_id --export $tempnode"
|
|
KERNEL=="md[0-9]*|md/*", IMPORT{program}="vol_id --export $tempnode"
|
|
|
|
ENV{ID_FS_TYPE}=="LVM2_member", \
|
|
TEST!="/tmp/.lvm_scan-%k", \
|
|
RUN+="/bin/sh -c '>/tmp/.lvm_scan-%k; /bin/ln -fs /sbin/lvm_scan /initqueue/lvm_scan.sh'"
|
|
|
|
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"
|