Skip to content

feat: add support for post-partitioning scripts#2002

Merged
imobachgs merged 6 commits intomasterfrom
post-partitioning-scripts
Feb 17, 2025
Merged

feat: add support for post-partitioning scripts#2002
imobachgs merged 6 commits intomasterfrom
post-partitioning-scripts

Conversation

@imobachgs
Copy link
Contributor

Problem

It is not possible to execute post-partitioning scripts. The typical use case is deploying configuration files before the packages are installed. This can be used, for instance, to modify the behavior of an RPM script.

Solution

  • Add support for running post-partitioning scripts.
  • Import the postpartitioning-scripts section from AutoYaST profiles.

Testing

  • Added a new unit test
  • Tested manually

@coveralls
Copy link

coveralls commented Feb 16, 2025

Pull Request Test Coverage Report for Build 13366828894

Details

  • 8 of 21 (38.1%) changed or added relevant lines in 5 files are covered.
  • 17 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.04%) to 70.773%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rust/agama-lib/src/scripts/store.rs 0 4 0.0%
rust/agama-lib/src/scripts/model.rs 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
service/lib/agama/storage/finisher.rb 2 98.54%
service/lib/agama/manager.rb 15 81.15%
Totals Coverage Status
Change from base Build 13338745119: -0.04%
Covered Lines: 17711
Relevant Lines: 25025

💛 - Coveralls

@imobachgs imobachgs marked this pull request as ready for review February 17, 2025 09:18
@imobachgs imobachgs merged commit ca747cf into master Feb 17, 2025
8 checks passed
@imobachgs imobachgs deleted the post-partitioning-scripts branch February 17, 2025 11:54
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants