Skip to content

Support reboot from shell during prepare and finish #902

@FrNecas

Description

@FrNecas

In one of the discussions around reboot, it was mentioned that it may be nice to also support it not only in execute -h internal but also in prepare -h shell. @psss mentioned that the same effect should be achieved using ansible and its reboot feature but it could be useful to provide the same thing for shell preparation (more options are nice, aren't they?). I see it as a nice-to-have, should not be hard to implement (logic can be reused) but not a priority.

prepare:
  - name: Prepare the system and reboot
    how: shell
    script: |
      if [ -z "$REBOOT_COUNT" ] || [ "$REBOOT_COUNT" -eq 0 ]; then
          dnf install -y something
          touch /etc/some-file
          tmt-reboot
      fi

Metadata

Metadata

Assignees

Labels

command | rebootSupport for rebooting guests during `tmt run` and the `tmt-reboot` commandstep | prepareStuff related to the prepare step

Projects

Status

implement

Status

triaged

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions