diff options
author | Jason Chu <jason@archlinux.org> | 2007-10-29 21:09:06 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-10-29 21:09:06 -0500 |
commit | a104988329a23d8deb99a671e009e01c59e2f107 (patch) | |
tree | 7a3bb499651775bd6ff46242b82dbb1b203fc559 | |
parent | 26fc26adf87c9ad78cc7b0e8598c2c768175cebc (diff) | |
download | devtools-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>
-rwxr-xr-x | makechrootpkg | 2 |
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" |