mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: use LVM_SYSTEM_DIR for etc
Instead of hardcoding etc/ dir use $LVM_SYSTEM_DIR.
This commit is contained in:
parent
a9b78d26b1
commit
c717011f8e
@ -1213,22 +1213,24 @@ EOF
|
|||||||
lvmconf() {
|
lvmconf() {
|
||||||
unset profile_name
|
unset profile_name
|
||||||
generate_config "$@"
|
generate_config "$@"
|
||||||
mv -f CONFIG etc/lvm.conf
|
mv -f CONFIG "$LVM_SYSTEM_DIR/lvm.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
profileconf() {
|
profileconf() {
|
||||||
|
local pdir="$LVM_SYSTEM_DIR/profile"
|
||||||
profile_name="$1"
|
profile_name="$1"
|
||||||
shift
|
shift
|
||||||
generate_config "$@"
|
generate_config "$@"
|
||||||
mkdir -p etc/profile
|
mkdir -p $pdir
|
||||||
mv -f "PROFILE_$profile_name" "etc/profile/$profile_name.profile"
|
mv -f "PROFILE_$profile_name" "$pdir/$profile_name.profile"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_profiles() {
|
prepare_profiles() {
|
||||||
mkdir -p etc/profile
|
local pdir="$LVM_SYSTEM_DIR/profile"
|
||||||
|
mkdir -p $pdir
|
||||||
for profile_name in $@; do
|
for profile_name in $@; do
|
||||||
test -L "lib/$profile_name.profile" || skip
|
test -L "lib/$profile_name.profile" || skip
|
||||||
cp "lib/$profile_name.profile" "etc/profile/$profile_name.profile"
|
cp "lib/$profile_name.profile" "$pdir/$profile_name.profile"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user