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") rootdir=$(realpath "$1")
umount "$rootdir/proc" killall gpg-agent > /dev/null 2>&1
umount "$rootdir/sys" umount "$rootdir/proc" > /dev/null 2>&1
umount "$rootdir/dev/pts" umount "$rootdir/sys" > /dev/null 2>&1
umount "$rootdir/dev/shm" umount "$rootdir/dev/pts" > /dev/null 2>&1
umount "$rootdir/dev" umount "$rootdir/dev/shm" > /dev/null 2>&1
umount "$rootdir/dev" > /dev/null 2>&1
return 0 return 0
} }