cleanup_only.sh: Incorporated improvements from autobuild.
This commit is contained in:
parent
5dfbded7b0
commit
77a26bec06
|
@ -5,10 +5,14 @@
|
|||
|
||||
builddir="/var/tmp/stagebuilder" # Do not use trailing slash here.
|
||||
echo "Unmounting file systems..."
|
||||
umount -l $builddir/stage4/dev{/shm,/pts,}
|
||||
umount -l $builddir/stage4/proc
|
||||
umount -l $builddir/stage4/sys
|
||||
umount -l $builddir/stage4/run
|
||||
if [ "$(ls -A $builddir/stage4/dev)" ]; then umount -l $builddir/stage4/dev{/shm,/pts,}; fi
|
||||
if [ "$(ls -A $builddir/stage4/proc)" ]; then umount -l $builddir/stage4/proc; fi
|
||||
if [ "$(ls -A $builddir/stage4/sys)" ]; then umount -l $builddir/stage4/sys; fi
|
||||
if [ "$(ls -A $builddir/stage4/run)" ]; then umount -l $builddir/stage4/run; fi
|
||||
echo "Removing stage4 build dir..."
|
||||
rm -rf $builddir/stage4/
|
||||
if [ "$(ls -A $builddir/stage4/)" ]; then rm -rf $builddir/stage4/*; fi
|
||||
echo "Done."
|
||||
echo "Removing binpkg dir..."
|
||||
rm -rf $builddir/binpkgs/*
|
||||
echo "Done."
|
||||
echo "Cleanup complete."
|
||||
|
|
Loading…
Reference in New Issue