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")
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue