From be8092838473b7e63e918db6ae522ab19924ddf7 Mon Sep 17 00:00:00 2001 From: Benjamin Denhartog Date: Sat, 4 Sep 2021 16:23:31 -0600 Subject: makechrootpkg: preserve SSH_AUTH_SOCK to support ssh operations This commit introduces the preservation of SSH_AUTH_SOCK within the chroot environment, to support SSH-based operations, such as cloning repositories via SSH. --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index dddfca9..d7e4ea9 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -241,7 +241,7 @@ download_sources() { chown "$makepkg_user:" "$WORKDIR" # Ensure sources are downloaded - sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \ + sudo -u "$makepkg_user" --preserve-env=GNUPGHOME,SSH_AUTH_SOCK \ env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \ makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" || die "Could not download sources." -- cgit v1.2.3-70-g09d2