Skip to content

Commit

Permalink
Merge pull request openSUSE#551 from OlegGirko/fix_nspawn_exit_code
Browse files Browse the repository at this point in the history
Return correct exit code from systemd-nspawn build
  • Loading branch information
adrianschroeter authored Feb 14, 2020
2 parents 41d53cd + ba571f7 commit 2a6238d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-vm-nspawn
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ vm_startup_nspawn() {
local name="${BUILD_ROOT##*/}"
name="obsbuild.${name//_/-}"
systemd-nspawn -D "$BUILD_ROOT" -M "$name" --private-network --pipe "$vm_init_script"
return "$?"
BUILDSTATUS="$?"
cleanup_and_exit "$BUILDSTATUS"
}

vm_kill_nspawn() {
Expand Down

0 comments on commit 2a6238d

Please sign in to comment.