Skip to content

dracut/30ignition/module-setup.sh: include groupmod binary in initramfs#2190

Merged
prestist merged 2 commits intocoreos:mainfrom
onurhanak:main
Feb 5, 2026
Merged

dracut/30ignition/module-setup.sh: include groupmod binary in initramfs#2190
prestist merged 2 commits intocoreos:mainfrom
onurhanak:main

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?

Copy link
Collaborator

@prestist prestist left a comment

Choose a reason for hiding this comment

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

Firstly, I am so sorry about the delay between PR and review here. Thank you
for working on this — adding the groupmod binary to the module setup makes
sense and fixes the issue correctly.

The formatting changes are not really part of this PR however. I'm okay
including them, but they should be in a separate commit to keep the
functional change (adding groupmod) distinct from the stylistic changes
(indentation fixes). I've added specific comments below.

Thank you again! Once we split those commits, this should be good to go.

instmods hv_utils

# required by applehv platform to read ignition file through vsock
instmods -c vsock
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, between this formatting change and the "shift" changes above, I think we can keep the formatting the same or make it an intentional commit along so that functional and stylistic choices are separated.

@onurhanak
Copy link
Contributor Author

@prestist Thanks, I edited my PR.

Copy link
Collaborator

@prestist prestist left a comment

Choose a reason for hiding this comment

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

LGTM! thank you for working on this!

@prestist prestist merged commit 929a773 into coreos:main Feb 5, 2026
10 checks passed
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

2 participants

Comments