##// END OF EJS Templates
Added ENABLE_SPLITFS option to produce distinct /boot/firmware and root images
Added ENABLE_SPLITFS option to produce distinct /boot/firmware and root images

Fichier de la dernière révision:

r66:061173da65b0 Fusion
r66:061173da65b0 Fusion
Show More
functions.sh
23 lines | 610 B | application/x-sh | BashLexer
cleanup (){
# Clean up all temporary mount points
set +x
set +e
echo "killing processes using mount point ..."
fuser -k $R
sleep 3
fuser -9 -k -v $R
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 "$ROOT_LOOP" 2> /dev/null
losetup -d "$FRMW_LOOP" 2> /dev/null
trap - 0 1 2 3 6
}
chroot_exec() {
# Exec command in chroot
LANG=C LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot $R $*
}