Commit cb6b4f68 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Disable the umount trap if run-parts returns 0

parent 0468a748
......@@ -74,6 +74,9 @@ trap '{ umount $target; }' ERR
echo "Execute all snf-image tasks...."
$RUN_PARTS -v --exit-on-error "@tasksdir@"
# Disable the trap. If code reaches here, the filesystem is unmounted.
trap - ERR
echo "SUCCESS" > $RESULT
cleanup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment