-
Notifications
You must be signed in to change notification settings - Fork 274
dracut/30ignition/module-setup.sh: include groupmod binary in initramfs #2190
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
base: main
Are you sure you want to change the base?
Conversation
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.
Code Review
This pull request correctly adds the groupmod binary to the initramfs, which is necessary for related changes. The PR also includes several stylistic improvements, such as code formatting and indentation fixes. I have one suggestion to further improve the readability and robustness of the install_ignition_unit function by simplifying its argument parsing.
| local unit="$1" | ||
| shift | ||
| local target="${1:-ignition-complete.target}" | ||
| shift | ||
| local instantiated="${1:-$unit}" | ||
| shift |
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.
While you're refactoring this for style, you can simplify the argument parsing. Using positional parameters directly ($1, $2, etc.) is clearer and less prone to errors than using shift multiple times, especially if set -e were active and the function was called with fewer arguments than expected.
| local unit="$1" | |
| shift | |
| local target="${1:-ignition-complete.target}" | |
| shift | |
| local instantiated="${1:-$unit}" | |
| shift | |
| local unit="$1" | |
| local target="${2:-ignition-complete.target}" | |
| local instantiated="${3:-$unit}" |
|
Hi, @prestist. Is there an approximate timeline as to when this PR can be merged? Thank you. |
|
@onurhanak thank you for working on this! sorry I had been busy on other tasks and this slipped my radar. I will take a look tomorrow. |
|
Hi @prestist , is there any progress on this? Is there anything I can do to speed things up? |
Resolves #2186 . Adds groupmod binary to initramfs for the changes made in pull request #2158 to work.