From d2a55dd4e68d8b383be6d919b1faa627403f389b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 21 Aug 2024 14:04:23 -0400 Subject: [PATCH] Revert "use sudo when chroot mount" This reverts commit 3e94341f434cee93b4daaf651f38a71c8f7c406e. --- scripts/alpine-chroot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/alpine-chroot b/scripts/alpine-chroot index da60c96..0728f32 100755 --- a/scripts/alpine-chroot +++ b/scripts/alpine-chroot @@ -11,7 +11,7 @@ shopt -s extglob die() { error "$@"; exit 1; } chroot_add_mount() { - sudo mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}") + mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}") } chroot_setup() { @@ -53,7 +53,7 @@ chroot_teardown() { # alpine-chroot kills gpg-agent, started by pacman-key, which otherwise # keeps the mounts busy and prevents unmounting pkill gpg-agent - sudo umount "${CHROOT_ACTIVE_MOUNTS[@]}" + umount "${CHROOT_ACTIVE_MOUNTS[@]}" unset CHROOT_ACTIVE_MOUNTS }