Skip to content

chroot: preserve LOGDEST and SRCDEST when running makechrootpkg #1196

@lahwaacz

Description

@lahwaacz

Right now aur-chroot preserves only PKGDEST when running makechrootpkg via sudo:

sudo) auth_args+=('--preserve-env=GNUPGHOME,SSH_AUTH_SOCK,PKGDEST') ;;

However, I may want to explicitly set LOGDEST and SRCDEST in the environment to temporarily put these artifacts in a different location than what I have set in ~/.config/pacman/makepkg.conf. I have to work around this by setting AUR_PACMAN_AUTH="sudo --preserve-env=GNUPGHOME,SSH_AUTH_SOCK,SRCDEST,PKGDEST,LOGDEST" but this is applied to mkarchroot and arch-nspawn as well, so I have to reconfigure sudoers.

I believe all SRCDEST,PKGDEST,LOGDEST should be preserved by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions