-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: add support to run pre/post scripts #1673
Merged
+997
−58
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9ea3758
chore(rust): add "strum" as dependency
imobachgs 3af6a9b
feat(rust): add a simple API to register and run scripts
imobachgs 93b6623
feat(ruby): run post-installation scripts
imobachgs ed8f7ec
feat(ruby): copy scripts artifacts
imobachgs 78b6d1a
feat(rust): validate the script section
imobachgs 3915aa5
feat(rust): improve scripts logging
imobachgs 1c6e59b
fix(docs): fix Script::run documentation
imobachgs 8c5d350
fix(rust): remove old scripts when importing
imobachgs 46deeb5
fix(rust): do not export empty/missing values in scripts
imobachgs b7c35c1
doc: update changes files
imobachgs 52b2fd8
fix(ruby): fix scripts client
imobachgs 29be17d
refactor(rust): improve scripts representation
imobachgs b1d5358
fix(rust): add missing 'use'
imobachgs bbc5614
refactor(rust): implement From trait for ScriptConfig
imobachgs 7252bee
fix(rust): fix scripts tests
imobachgs 73f830f
fix(rust): postpone running pre-scripts
imobachgs 55a6455
fix(ruby): copy scripts to /var/log/agama-installation
imobachgs 820edd5
refactor(rust): remove unused function
imobachgs bc8ba0f
docs(rust): minor documentation fixes
imobachgs f7f2318
fix(rust): do not tag ScriptSource in JSON
imobachgs 1ebaab2
Revert "fix(rust): postpone running pre-scripts"
imobachgs 7e4131a
fix(rust): run pre-scripts before selecting the product
imobachgs afacb84
Merge branch 'master' into auto-scripts
imobachgs 0da989f
Merge branch 'master' into auto-scripts
imobachgs 1322ca9
chore(rust): add a TODO about running pre-scripts
imobachgs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) [2024] SUSE LLC | ||
// | ||
// All Rights Reserved. | ||
// | ||
// This program is free software; you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by the Free | ||
// Software Foundation; either version 2 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but WITHOUT | ||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
// more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along | ||
// with this program; if not, contact SUSE LLC. | ||
// | ||
// To contact SUSE LLC about this file by physical or electronic mail, you may | ||
// find current contact information at www.suse.com. | ||
|
||
//! Implements support for handling the user-defined scripts. | ||
|
||
mod client; | ||
mod error; | ||
mod model; | ||
mod settings; | ||
mod store; | ||
|
||
pub use error::ScriptError; | ||
pub use model::*; | ||
pub use settings::*; | ||
pub use store::ScriptsStore; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Um, when exactly? Nothing done yet?
I mean later we might add a "post-partitioning" script so it should be clean whether at this point something is already done by Agama or the system has not been touched yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before the post-partitioning. I can improve the description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were expected to be used to modify the profile, but I am not sure whether we should implement that behavior. Or perhaps to activate some hardware.