From a104988329a23d8deb99a671e009e01c59e2f107 Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Mon, 29 Oct 2007 21:09:06 -0500 Subject: Trap normal exit for makechrootpkg Make sure we umount everything on a clean exit too Signed-off-by: Aaron Griffin --- makechrootpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg') 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" -- cgit v1.2.3-70-g09d2