Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Fedora Image Mode #3229

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Support Fedora Image Mode #3229

wants to merge 3 commits into from

Conversation

thrix
Copy link
Collaborator

@thrix thrix commented Sep 19, 2024

To support Fedora Image mode the following changes were required:

  • Fix rsync installation. The tool is not included in the distribution and
    the installation method was completely broken, i.e. rpm-ostree has
    no --install-root option. We did not hit it as there is no good
    testing environment available that would cover this.

  • Introduce TMT_SCRIPTS_DEST_DIR environment variable set by default
    to /var/tmp/tmt/bin which hosts the tmt scripts. The original path
    is not writable on these systems. The PATH is set system wide via a
    new /etc/profile.d/tmt.sh script.

Signed-off-by: Miroslav Vadkerti [email protected]

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • update the specification
  • adjust plugin docstring
  • modify the json schema
  • mention the version
  • include a release note

@thrix thrix added this to the 1.37 milestone Sep 19, 2024
@thrix thrix self-assigned this Sep 19, 2024
thrix added a commit to testing-farm/gluetool-modules that referenced this pull request Sep 20, 2024
With tmt from this MR:

teemtee/tmt#3229

Signed-off-by: Miroslav Vadkerti <[email protected]>
@thrix thrix force-pushed the image-mode-fedora branch 4 times, most recently from 5617f1e to 71c72d1 Compare October 1, 2024 08:19
@thrix thrix requested a review from happz October 1, 2024 08:20
tmt/steps/execute/scripts/tmt.sh.j2 Fixed Show fixed Hide fixed
tmt/steps/execute/scripts/tmt.sh.j2 Fixed Show fixed Hide fixed
tmt/steps/execute/scripts/tmt.sh.j2 Fixed Show fixed Hide fixed
tmt/steps/execute/scripts/tmt.sh.j2 Fixed Show fixed Hide fixed
tmt/steps/execute/scripts/tmt.sh.j2 Fixed Show fixed Hide fixed
To support Fedora Image mode the following changes were required:

* Fix `rsync` installation. The tool is not included in the distribution and
  the installation method was completely broken, i.e. `rpm-ostree` has
  no `--install-root` option. We did not hit it as there is no good
  testing environment available that would cover this.

* Introduce `TMT_SCRIPTS_DEST_DIR` environment variable set by default
  to `/var/tmp/tmt/bin` which hosts the `tmt` scripts. The original path
  is not writable on these systems. The `PATH` is set system wide via a
  new `/etc/profile.d/tmt.sh` script.

Signed-off-by: Miroslav Vadkerti <[email protected]>
@thrix thrix marked this pull request as ready for review October 1, 2024 08:30
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@martinhoyer martinhoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I understand it correctly, that the intention is to have default directory which is writable on all platforms, as opposed to having a default directory, which would be changed if 'default' is not writable?

.github/workflows/shellcheck.yml Outdated Show resolved Hide resolved
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
@thrix thrix modified the milestones: 1.37, 1.38 Oct 1, 2024
@thrix thrix added the priority | must high priority, must be included in the next release label Oct 1, 2024
@happz happz added the step | execute Stuff related to the execute step label Oct 1, 2024
To support Fedora Image mode the following changes were required:

* Fix `rsync` installation. The tool is not included in the distribution and
  the installation method was completely broken, i.e. `rpm-ostree` has
  no `--install-root` option. We did not hit it as there is no good
  testing environment available that would cover this.

* Introduce `TMT_SCRIPTS_DEST_DIR` environment variable set by default
  to `/var/tmp/tmt/bin` which hosts the `tmt` scripts. The original path
  is not writable on these systems. The `PATH` is set system wide via a
  new `/etc/profile.d/tmt.sh` script.

Signed-off-by: Miroslav Vadkerti <[email protected]>
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
tmt/steps/execute/__init__.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority | must high priority, must be included in the next release step | execute Stuff related to the execute step
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants