Browse Source

sde-build: reversed the order Build-Target umounts, and made debug.sh umounts lazy

user/amery/test/random-cleanup
Alejandro Mery 14 years ago
parent
commit
0e1a5ffdb5
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      scripts/Build-Pkg
  2. +2
    -2
      scripts/Build-Target

+ 2
- 2
scripts/Build-Pkg

@ -224,8 +224,8 @@ if [ "$chroot" = 1 ] ; then
if ! fuser -s "$xroot/TOOLCHAIN/" ; then
echo "Loop mounts appear unused - un-mounting ..."
umount "$xroot/TOOLCHAIN/"{loop,config,download}
umount "$xroot/proc"
umount -l "$xroot/TOOLCHAIN/"{download,config,loop}
umount -l "$xroot/proc"
fi
EOT
chmod +x $builddir/debug.sh

+ 2
- 2
scripts/Build-Target

@ -267,8 +267,8 @@ umount_chroot() {
exec 201> /dev/null
if ! ( cd ${build_logs}; fuser *.log > /dev/null 2>&1 ); then
echo_status "Unmounting loop mounts ..."
umount -d -f $build_toolchain/{loop,config,download} 2> /dev/null
umount -d -f -l $build_toolchain/{loop,config,download} 2> /dev/null
umount -d -f $build_toolchain/{download,config,loop} 2> /dev/null
umount -d -f -l $build_toolchain/{download,config,loop} 2> /dev/null
umount -d -f $build_root/proc 2> /dev/null
umount -d -f -l $build_root/proc 2> /dev/null
fi

Loading…
Cancel
Save