build_fn: Kill gpg-agent on detach
This commit is contained in:
parent
7022ff2e28
commit
7e2a7c483d
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue