mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Selectively enable/disable udev rules.
This commit is contained in:
parent
55f83c4399
commit
a320aeb30f
@ -313,6 +313,11 @@ prepare_vg() {
|
|||||||
|
|
||||||
lvmconf() {
|
lvmconf() {
|
||||||
if test -z "$LVM_TEST_LOCKING"; then LVM_TEST_LOCKING=1; fi
|
if test -z "$LVM_TEST_LOCKING"; then LVM_TEST_LOCKING=1; fi
|
||||||
|
if test "$DM_DEV_DIR" = "/dev"; then
|
||||||
|
UDEV_RULES=1;
|
||||||
|
else
|
||||||
|
UDEV_RULES=0;
|
||||||
|
fi
|
||||||
test -f CONFIG_VALUES || {
|
test -f CONFIG_VALUES || {
|
||||||
cat > CONFIG_VALUES <<-EOF
|
cat > CONFIG_VALUES <<-EOF
|
||||||
devices/dir = "$DM_DEV_DIR"
|
devices/dir = "$DM_DEV_DIR"
|
||||||
@ -336,7 +341,7 @@ global/locking_type=$LVM_TEST_LOCKING
|
|||||||
global/si_unit_consistency = 1
|
global/si_unit_consistency = 1
|
||||||
global/fallback_to_local_locking = 0
|
global/fallback_to_local_locking = 0
|
||||||
activation/udev_sync = 1
|
activation/udev_sync = 1
|
||||||
activation/udev_rules = 1
|
activation/udev_rules = $UDEV_RULES
|
||||||
activation/polling_interval = 0
|
activation/polling_interval = 0
|
||||||
activation/snapshot_autoextend_percent = 50
|
activation/snapshot_autoextend_percent = 50
|
||||||
activation/snapshot_autoextend_threshold = 50
|
activation/snapshot_autoextend_threshold = 50
|
||||||
|
Loading…
Reference in New Issue
Block a user