Skip to content

Fix lvm2 environment variable filtering#294

Merged
bmr-cymru merged 5 commits intomainfrom
bmr-fix-lvm2-env-filter
May 29, 2025
Merged

Fix lvm2 environment variable filtering#294
bmr-cymru merged 5 commits intomainfrom
bmr-fix-lvm2-env-filter

Conversation

@bmr-cymru
Copy link
Copy Markdown
Contributor

Resolves: #290
Resolves: #291
Resolves: #292
Resolves: #293

bmr-cymru added 5 commits May 29, 2025 19:13
Having to pass env=self._env to every run() call is repetitive and
fragile: introduce a thin wrapper around subprocess.run() that sets
env= to the sanitized environment stored in self._env.

Callers can override the sanitized environment where needed by
calling `self._run()` with the env keyword argument: in this case
the two dictionaries are merged before calling run(). Environment
variables in the value passed in by the caller take precedence over
the defaults.

Resolves: #291
Make _get_lvm_version() a method of the abstract _Lvm2 class, allowing
enforcement of the lvm environment sanitization.

Related: #292
Make is_lvm_device() a method of the abstract _Lvm2 class, allowing
enforcement of the lvm environment sanitization.

Related: #292
Make _activate() a method of the abstract _Lvm2 class, allowing
enforcement of the lvm environment sanitization.

Resolves: #292
@packit-as-a-service
Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/snapshotmanager-snapm-294
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

1 similar comment
@packit-as-a-service
Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/snapshotmanager-snapm-294
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@bmr-cymru bmr-cymru merged commit d269e6a into main May 29, 2025
16 checks passed
@bmr-cymru bmr-cymru deleted the bmr-fix-lvm2-env-filter branch May 30, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant