Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
cb6b4f68
Commit
cb6b4f68
authored
Oct 07, 2011
by
Nikos Skalkotos
Browse files
Disable the umount trap if run-parts returns 0
parent
0468a748
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/snf-image-helper.in
View file @
cb6b4f68
...
@@ -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
echo
"SUCCESS"
>
$RESULT
echo
"SUCCESS"
>
$RESULT
cleanup
cleanup
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment