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 ...@@ -74,6 +74,9 @@ trap '{ umount $target; }' ERR
echo "Execute all snf-image tasks...." echo "Execute all snf-image tasks...."
$RUN_PARTS -v --exit-on-error "@tasksdir@" $RUN_PARTS -v --exit-on-error "@tasksdir@"
# Disable the trap. If code reaches here, the filesystem is unmounted.
trap - ERR
cleanup 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