diff --git a/filesystem/autofs/autofs.conf b/filesystem/autofs/autofs.conf index 57be49232..2e0683917 100644 --- a/filesystem/autofs/autofs.conf +++ b/filesystem/autofs/autofs.conf @@ -24,3 +24,7 @@ hook_add prepatch 5 'pkg_autofs_prepatch' if pkginstalled openldap; then var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir openldap )" fi + +# set sysconfdir to '/etc/autofs' in the case it was auto-configured to '/etc' +[ "$sysconfdir" = "$root/etc" ] && \ + sysconfdir=$root/etc/autofs