##// END OF EJS Templates
Force noninteractive debian frontend
Filip Pytloun -
r58:5aea90096d16
parent child
Show More
@@ -1,19 +1,19
1 cleanup (){
1 cleanup (){
2 # Clean up all temporary mount points
2 # Clean up all temporary mount points
3 set +x
3 set +x
4 set +e
4 set +e
5 echo "removing temporary mount points ..."
5 echo "removing temporary mount points ..."
6 umount -l $R/proc 2> /dev/null
6 umount -l $R/proc 2> /dev/null
7 umount -l $R/sys 2> /dev/null
7 umount -l $R/sys 2> /dev/null
8 umount -l $R/dev/pts 2> /dev/null
8 umount -l $R/dev/pts 2> /dev/null
9 umount "$BUILDDIR/mount/boot/firmware" 2> /dev/null
9 umount "$BUILDDIR/mount/boot/firmware" 2> /dev/null
10 umount "$BUILDDIR/mount" 2> /dev/null
10 umount "$BUILDDIR/mount" 2> /dev/null
11 losetup -d "$EXT4_LOOP" 2> /dev/null
11 losetup -d "$EXT4_LOOP" 2> /dev/null
12 losetup -d "$VFAT_LOOP" 2> /dev/null
12 losetup -d "$VFAT_LOOP" 2> /dev/null
13 trap - 0 1 2 3 6
13 trap - 0 1 2 3 6
14 }
14 }
15
15
16 chroot_exec() {
16 chroot_exec() {
17 # Exec command in chroot
17 # Exec command in chroot
18 LANG=C LC_ALL=C chroot $R $*
18 LANG=C LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot $R $*
19 }
19 }
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant