parent
5f4c56c034
commit
d2a55dd4e6
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ shopt -s extglob
|
||||||
die() { error "$@"; exit 1; }
|
die() { error "$@"; exit 1; }
|
||||||
|
|
||||||
chroot_add_mount() {
|
chroot_add_mount() {
|
||||||
sudo mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}")
|
mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}")
|
||||||
}
|
}
|
||||||
|
|
||||||
chroot_setup() {
|
chroot_setup() {
|
||||||
|
@ -53,7 +53,7 @@ chroot_teardown() {
|
||||||
# alpine-chroot kills gpg-agent, started by pacman-key, which otherwise
|
# alpine-chroot kills gpg-agent, started by pacman-key, which otherwise
|
||||||
# keeps the mounts busy and prevents unmounting
|
# keeps the mounts busy and prevents unmounting
|
||||||
pkill gpg-agent
|
pkill gpg-agent
|
||||||
sudo umount "${CHROOT_ACTIVE_MOUNTS[@]}"
|
umount "${CHROOT_ACTIVE_MOUNTS[@]}"
|
||||||
unset CHROOT_ACTIVE_MOUNTS
|
unset CHROOT_ACTIVE_MOUNTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue