diff --git a/lvm.conf b/lvm.conf index 413eb93..91b8ad1 100644 --- a/lvm.conf +++ b/lvm.conf @@ -128,7 +128,7 @@ devices { # be used, regardless of this setting, when the --devicesfile # option is set to a specific file name. # This configuration option has an automatic default value. - # use_devicesfile = 0 + # use_devicesfile = 1 # Configuration option devices/devicesfile. # The name of the system devices file, listing devices that LVM should use. diff --git a/lvm2.changes b/lvm2.changes index 663b00d..7973dcb 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jul 22 01:44:00 UTC 2024 - Glass Su + +- enable devices file feature by default - see lvmdevices(8) + * enable '--with-default-use-devices-file=1' in lvm2.spec + * update commented default value of 'use_devicesfile' in lvm2.conf + ------------------------------------------------------------------- Wed Jun 26 22:59:00 UTC 2024 - Heming Zhao diff --git a/lvm2.spec b/lvm2.spec index 79d55c2..0a0ba4a 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -40,6 +40,10 @@ %define sanlock_version 3.3.0 %endif +%if 0%{?suse_version} >= 1600 + %define default_use_devices_file 1 +%endif + %global flavor @BUILD_FLAVOR@%{nil} %define psuffix %{nil} @@ -183,6 +187,12 @@ extra_opts=" " %endif +%if 0%{?default_use_devices_file} == 1 +extra_opts="$extra_opts + --with-default-use-devices-file=1 +" +%endif + ### COMMON-CONFIG-BEGIN ### export PATH=$PATH:/sbin:%{_sbindir} # Why this messy fix here? someone released a wrong version...