summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2007-10-29 21:09:06 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2007-10-29 21:09:06 -0500
commita104988329a23d8deb99a671e009e01c59e2f107 (patch)
tree7a3bb499651775bd6ff46242b82dbb1b203fc559 /makechrootpkg
parent26fc26adf87c9ad78cc7b0e8598c2c768175cebc (diff)
downloaddevtools32-a104988329a23d8deb99a671e009e01c59e2f107.tar.xz
Trap normal exit for makechrootpkg
Make sure we umount everything on a clean exit too Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 05f63a9..52db6f5 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -79,7 +79,7 @@ uniondir="$chrootdir/union"
echo "building union chroot"
modprobe -q unionfs
mount -t unionfs none -o "dirs=$chrootdir/rw=rw:$chrootdir/root=ro" "$uniondir"
-trap 'cleanup' 1 2 15
+trap 'cleanup' 0 1 2 15
echo "moving build files to chroot"
[ -d "$uniondir/build" ] || mkdir "$uniondir/build"