build_fn: Kill gpg-agent on detach

This commit is contained in:
timoxa0 2024-10-28 00:23:25 +05:00
parent 7022ff2e28
commit 7e2a7c483d

View file

@ -138,11 +138,12 @@ detach_chroot()
}
rootdir=$(realpath "$1")
umount "$rootdir/proc"
umount "$rootdir/sys"
umount "$rootdir/dev/pts"
umount "$rootdir/dev/shm"
umount "$rootdir/dev"
killall gpg-agent > /dev/null 2>&1
umount "$rootdir/proc" > /dev/null 2>&1
umount "$rootdir/sys" > /dev/null 2>&1
umount "$rootdir/dev/pts" > /dev/null 2>&1
umount "$rootdir/dev/shm" > /dev/null 2>&1
umount "$rootdir/dev" > /dev/null 2>&1
return 0
}