Skip to content

Commit

Permalink
Ignore, if shutdown behavior changed by build in z/VM
Browse files Browse the repository at this point in the history
  • Loading branch information
Berthold Gunreben committed Jun 5, 2020
1 parent 1302344 commit 793dddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-vm-zvm
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ vm_startup_zvm() {
# sleep some time before taking root and swap devices from worker
# This might be critical regarding timing (IUCV_CONSOLE down, but machine still running)
sleep 5
# Build jobs might change the shutdown behavior, so just return if machine is powered off.
if ! (vmcp q $VM_WORKER >& /dev/null); then
return
fi
zvm_cp volume_detach $VM_WORKER $ZVM_VOLUME_ROOT
zvm_cp volume_detach $VM_WORKER $ZVM_VOLUME_SWAP
}
Expand Down

0 comments on commit 793dddc

Please sign in to comment.