Skip to content

Add metal config drive - #1

Merged
atd9876 merged 4 commits into
mainfrom
add-metal-config-drive
Aug 14, 2026
Merged

Add metal config drive#1
atd9876 merged 4 commits into
mainfrom
add-metal-config-drive

Conversation

@atd9876

@atd9876 atd9876 commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Local PR for copilot review

@atd9876

atd9876 commented Apr 24, 2026

Copy link
Copy Markdown
Owner Author

@copilot review this PR

@atd9876
atd9876 force-pushed the add-metal-config-drive branch 3 times, most recently from bab4a01 to a13e77b Compare May 8, 2026 12:25
@atd9876
atd9876 force-pushed the add-metal-config-drive branch from 9a073d5 to 0861cdd Compare June 10, 2026 08:41
@atd9876
atd9876 force-pushed the add-metal-config-drive branch from 0861cdd to 06a1302 Compare July 3, 2026 12:20
atd9876 added 2 commits July 7, 2026 09:38
Follow the existing pattern used by SystemConfigDir and other distro
functions, allowing KernelCmdlinePath to be overridden via the
IGNITION_KERNEL_CMDLINE_PATH environment variable. This enables
blackbox tests to inject a fake kernel cmdline.

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
Add support for loading Ignition config from a labeled block device via
the ignition.config.device and ignition.config.path kernel command-line
arguments. Both must be specified together.

Error handling:
- Return hard error if only one of device/path is specified
- Return hard error if the device does not appear within 30s timeout
- Return hard error if the config file is not found on the device

Includes unit tests for parseCmdline and blackbox integration tests
covering both positive (successful fetch) and negative (missing device,
missing file, incomplete options) scenarios.

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
@atd9876
atd9876 force-pushed the add-metal-config-drive branch from 06a1302 to feb4f08 Compare July 7, 2026 08:38
prestist and others added 2 commits July 17, 2026 10:44
If the block device is unresponsive, mount could hang indefinitely.
Use exec.CommandContext so the mount is cancelled when the 30s context
expires, preventing an indefinite hang.

Signed-off-by: Andrew Dodds <andrew.dodds@sap.com>
@atd9876
atd9876 merged commit 7feb4ce into main Aug 14, 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.

2 participants