summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot4
-rwxr-xr-xsrc/chroot-tools/libremakepkg3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 7b1c8c2..db4c87b 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -37,8 +37,6 @@ set -euE
shopt -s nullglob
umask 0022
-load_files chroot
-
################################################################################
# Wrappers for files in ${pkglibexecdir}/chroot/ #
################################################################################
@@ -380,7 +378,7 @@ main() {
return 0
fi
- check_vars chroot CHROOTDIR CHROOT
+ load_conf chroot.conf CHROOTDIR CHROOT
eval "$(calculate_directories)"
readonly LIBREUSER LIBREHOME
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index 019bae1..02b31a8 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -212,8 +212,7 @@ main() {
if $INCHROOT; then
copydir='/'
else
- load_files chroot
- check_vars chroot CHROOTDIR CHROOT
+ load_conf chroot.conf CHROOTDIR CHROOT || exit
[[ -z ${chroot} ]] || CHROOT=$chroot
if [[ ${copy:0:1} = / ]]; then
copydir=$copy