mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
profile: add default.profile and install it
The default.profile contains all settings that are customizable by a profile. This default profile can be copied across to create new profiles.
This commit is contained in:
parent
6d1ed2254c
commit
21554ab5fe
@ -18,14 +18,23 @@ top_builddir = @top_builddir@
|
|||||||
CONFSRC=example.conf
|
CONFSRC=example.conf
|
||||||
CONFDEST=lvm.conf
|
CONFDEST=lvm.conf
|
||||||
|
|
||||||
|
DEFAULT_PROFILE=default.profile
|
||||||
|
PROFILES=$(DEFAULT_PROFILE)
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
install_lvm2: $(CONFSRC)
|
install_conf: $(CONFSRC)
|
||||||
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
|
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
|
||||||
echo "$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST)"; \
|
echo "$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST)"; \
|
||||||
$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST); \
|
$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
install_profiles: $(PROFILES)
|
||||||
|
$(INSTALL) -d $(DEFAULT_PROFILE_DIR)
|
||||||
|
$(INSTALL_DATA) $(PROFILES) $(DEFAULT_PROFILE_DIR)/
|
||||||
|
|
||||||
|
install_lvm2: install_conf install_profiles
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
|
||||||
DISTCLEAN_TARGETS += $(CONFSRC)
|
DISTCLEAN_TARGETS += $(CONFSRC) $(DEFAULT_PROFILE)
|
||||||
|
20
conf/default.profile.in
Normal file
20
conf/default.profile.in
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# This is a default profile for the LVM2 system.
|
||||||
|
# It contains all configuration settings that are customizable by profiles.
|
||||||
|
#
|
||||||
|
# To create a new profile, select the settings you want to customize
|
||||||
|
# and put them in a new file named <profile_name>.profile. Then put this
|
||||||
|
# file in a directory as defined by config/profile_dir setting found in
|
||||||
|
# @DEFAULT_SYS_DIR@/lvm.conf file.
|
||||||
|
#
|
||||||
|
# Refer to 'man lvm.conf' for further information about profiles and file layout.
|
||||||
|
|
||||||
|
allocation {
|
||||||
|
thin_pool_chunk_size = 64
|
||||||
|
thin_pool_discards = "passdown"
|
||||||
|
thin_pool_zero = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
activation {
|
||||||
|
thin_pool_autoextend_threshold = 100
|
||||||
|
thin_pool_autoextend_percent = 20
|
||||||
|
}
|
3
configure
vendored
3
configure
vendored
@ -10810,7 +10810,7 @@ LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
|
|||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile conf/Makefile conf/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
|
ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile conf/Makefile conf/example.conf conf/default.profile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@ -11515,6 +11515,7 @@ do
|
|||||||
"daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
|
"daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
|
||||||
"conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
|
"conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
|
||||||
"conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;;
|
"conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;;
|
||||||
|
"conf/default.profile") CONFIG_FILES="$CONFIG_FILES conf/default.profile" ;;
|
||||||
"include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
|
"include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
|
||||||
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
||||||
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
||||||
|
@ -1642,6 +1642,7 @@ daemons/dmeventd/plugins/thin/Makefile
|
|||||||
daemons/lvmetad/Makefile
|
daemons/lvmetad/Makefile
|
||||||
conf/Makefile
|
conf/Makefile
|
||||||
conf/example.conf
|
conf/example.conf
|
||||||
|
conf/default.profile
|
||||||
include/.symlinks
|
include/.symlinks
|
||||||
include/Makefile
|
include/Makefile
|
||||||
lib/Makefile
|
lib/Makefile
|
||||||
|
@ -81,6 +81,7 @@ DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@
|
|||||||
DEFAULT_ARCHIVE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_ARCHIVE_SUBDIR@
|
DEFAULT_ARCHIVE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_ARCHIVE_SUBDIR@
|
||||||
DEFAULT_BACKUP_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_BACKUP_SUBDIR@
|
DEFAULT_BACKUP_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_BACKUP_SUBDIR@
|
||||||
DEFAULT_CACHE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_CACHE_SUBDIR@
|
DEFAULT_CACHE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_CACHE_SUBDIR@
|
||||||
|
DEFAULT_PROFILE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_PROFILE_SUBDIR@
|
||||||
DEFAULT_LOCK_DIR = @DEFAULT_LOCK_DIR@
|
DEFAULT_LOCK_DIR = @DEFAULT_LOCK_DIR@
|
||||||
DEFAULT_RUN_DIR = @DEFAULT_RUN_DIR@
|
DEFAULT_RUN_DIR = @DEFAULT_RUN_DIR@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user