From 76457c6428f8294019660183a58f75eeecd9e08e Mon Sep 17 00:00:00 2001 From: Matthias Fulz Date: Mon, 11 Oct 2021 10:10:07 +0200 Subject: [PATCH] Fixed folder issues --- lib/buildah.inc.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/buildah.inc.sh b/lib/buildah.inc.sh index 3880b72..8cb692d 100644 --- a/lib/buildah.inc.sh +++ b/lib/buildah.inc.sh @@ -32,6 +32,7 @@ function buildah_prepare_params() { _BUILDAH_PARAMS="${_BUILDAH_PARAMS} -v ${ARCHBUILDER_CACHE_REPO}:${_BUILDAH_CACHE_REPO_PATH}:rw,U" # adding working directory to container + # TODO: param -> req for aurutils _BUILDAH_PARAMS="${_BUILDAH_PARAMS} -v $(pwd):${_BUILDAH_MKPKG_PATH}:rw,U" log_info "Preparing makepkg environment" @@ -82,9 +83,6 @@ function buildah_create() { log_info "Setting up sudo for user '${_OPT_CON_BUILD_USER}'" exec_cmd buildah run "${_BUILDAH_CONT}" bash -c "echo '${_OPT_CON_BUILD_USER} ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/${_OPT_CON_BUILD_USER}" - log_info "Creating container folder '${_BUILDAH_DEP_PATH}'" - exec_cmd buildah run --user "${_OPT_CON_BUILD_USER}" "${_BUILDAH_CONT}" mkdir "${_BUILDAH_DEP_PATH}" - log_info "Creating container folder '${_BUILDAH_MKPKG_PATH}'" exec_cmd buildah run --user "${_OPT_CON_BUILD_USER}" "${_BUILDAH_CONT}" mkdir "${_BUILDAH_MKPKG_PATH}"