Autoload the installation profile from the medium root (jsc#PED-16010)#3366
Merged
Autoload the installation profile from the medium root (jsc#PED-16010)#3366
Conversation
- Use journal logging with more details in the autoinstallation CLI tool (log to stdout when running manually)
imobachgs
requested changes
Apr 8, 2026
Contributor
imobachgs
left a comment
There was a problem hiding this comment.
In general, it looks good. But, please, move the logging module to agama-utils. The idea is to phase out the agama-lib at some point.
imobachgs
approved these changes
Apr 8, 2026
This was referenced Apr 8, 2026
lslezak
added a commit
that referenced
this pull request
Apr 14, 2026
#3385) ## Problem - The https://jira.suse.com/browse/PED-16010 is requested also for 16.0 ## Solution - Backport #3366 to SLE-16.0 - Only the list of predefined places has been updated, the logging was not changed to have a minimal patch for 16.0 ## Testing - Tested manually with a patched ISO image ```console # journalctl -u agama-autoinstall.service Apr 14 16:30:30 agama systemd[1]: Started Agama automatic profile runner. Apr 14 16:30:30 agama agama-autoinstall[5443]: Could not load the configuration from label://OEMDRV/autoinst.jsonnet Apr 14 16:30:30 agama agama-autoinstall[5443]: Could not load the configuration from label://OEMDRV/autoinst.json Apr 14 16:30:33 agama agama-autoinstall[5443]: Could not load the configuration from label://OEMDRV/autoinst.xml Apr 14 16:30:33 agama agama-autoinstall[5443]: Could not load the configuration from file:///run/initramfs/live/autoinst.jsonnet Apr 14 16:30:42 agama agama-autoinstall[5443]: Configuration loaded from file:///run/initramfs/live/autoinst.json Apr 14 16:30:42 agama agama-autoinstall[5443]: Skipping the auto-installation on user's request (inst.install=0) Apr 14 16:30:42 agama systemd[1]: agama-autoinstall.service: Deactivated successfully. Apr 14 16:30:42 agama systemd[1]: agama-autoinstall.service: Consumed 1.125s CPU time, 18.2M memory peak. ``` The `/autoinst.json` from the ISO was found and successfully loaded. ## Notes - The openAPI CI job fails as it uses the old Ubuntu based definition which does not work anymore, just ignore the failure. Later we should update the CI definitions.
Merged
imobachgs
added a commit
that referenced
this pull request
Apr 14, 2026
Prepare to release version 20. * #3294 * #3295 * #3296 * #3297 * #3298 * #3299 * #3300 * #3301 * #3302 * #3303 * #3304 * #3305 * #3306 * #3307 * #3308 * #3309 * #3310 * #3311 * #3312 * #3313 * #3315 * #3316 * #3317 * #3318 * #3319 * #3320 * #3322 * #3323 * #3325 * #3326 * #3327 * #3329 * #3330 * #3331 * #3333 * #3334 * #3336 * #3338 * #3339 * #3342 * #3343 * #3349 * #3351 * #3352 * #3353 * #3354 * #3356 * #3357 * #3358 * #3359 * #3360 * #3361 * #3362 * #3363 * #3364 * #3365 * #3366 * #3367 * #3368 * #3371 * #3372 * #3373 * #3375 * #3376 * #3378 * #3379 * #3380 * #3381 * #3382 * #3385 * #3386
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Solution
Testing
agama.isois the input ISO,agama-auto.isois the new modified ISO and theprofile.jsonis the autoinstallation profile copied to the/autoinst.jsonlocation in the new ISO.Screenshots
When running the autoinstallation manually from the terminal the log is printed on the console. When running from the systemd service the logging is redirected to the journal.
The example journal output below contains two service runs, the initial one with the original client, the second one is started after patching the client with this pull request. The new log contains more details (source code locations) and can distinguish between info, warnings and errors (not shown in this case).
Notes
If we want to have a less verbose output on CLI we could modify the logger to be quiet when the output goes to the terminal and add
--verboseoption to have it verbose always. But I think it is OK to have those details by default, it will be useful for debugging later.