Skip to content

Conversation

@onurhanak
Copy link
Contributor

Resolves #2186 . Adds groupmod binary to initramfs for the changes made in pull request #2158 to work.

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

Comment on lines +17 to +22
local unit="$1"
shift
local target="${1:-ignition-complete.target}"
shift
local instantiated="${1:-$unit}"
shift

Choose a reason for hiding this comment

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

medium

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.

Suggested change
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}"

@onurhanak
Copy link
Contributor Author

Hi, @prestist. Is there an approximate timeline as to when this PR can be merged? Thank you.

@prestist
Copy link
Collaborator

prestist commented Jan 28, 2026

@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.

@onurhanak
Copy link
Contributor Author

Hi @prestist , is there any progress on this? Is there anything I can do to speed things up?

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.

groupmod executable is not found during ignition phase

3 participants