##// END OF EJS Templates
Enhance cleanup by killing processes running in endpoint
Enhance cleanup by killing processes running in endpoint

Fichier de la dernière révision:

r59:a1508536fc6e
r59:a1508536fc6e
Show More
functions.sh
23 lines | 610 B | application/x-sh | BashLexer
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 cleanup (){
# Clean up all temporary mount points
set +x
set +e
Filip Pytloun
Enhance cleanup by killing processes running in endpoint
r59 echo "killing processes using mount point ..."
fuser -k $R
sleep 3
fuser -9 -k -v $R
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 echo "removing temporary mount points ..."
umount -l $R/proc 2> /dev/null
umount -l $R/sys 2> /dev/null
umount -l $R/dev/pts 2> /dev/null
umount "$BUILDDIR/mount/boot/firmware" 2> /dev/null
umount "$BUILDDIR/mount" 2> /dev/null
losetup -d "$EXT4_LOOP" 2> /dev/null
losetup -d "$VFAT_LOOP" 2> /dev/null
trap - 0 1 2 3 6
}
chroot_exec() {
# Exec command in chroot
Filip Pytloun
Force noninteractive debian frontend
r58 LANG=C LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot $R $*
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 }