Skip to content
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

Support reading AutoYaST profile from the QEMU fw_cfg #157

Closed
wants to merge 1 commit into from

Conversation

dmacvicar
Copy link
Member

@dmacvicar dmacvicar commented Nov 14, 2017

See: https://git.qemu.org/?p=qemu.git;a=blob;f=docs/specs/fw_cfg.txt

In order to pass the profile to the VM, the following QEMU command
line is used: -fw_cfg name=opt/keyname,file=somedata.txt

For the AutoYaST support, the key "opt/com.suse/autoinst" is used.
So: -fw_cfg name=opt/com.suse/autoinst,file=autoinst.xml

It is used as last resort, to allow overriding it with the media and
the kernel command line options.

TODO: document at https://en.opensuse.org/SDB:Linuxrc#AutoYaST_Profile_Handling if merged.

Reviewer note: I could had factored out some common code (parsing and network), however, giving the quirk of the parse function working with file:/ but not file:/// it was not possible to use config.autoyast there, so the refactoring not worth it.

See: https://git.qemu.org/?p=qemu.git;a=blob;f=docs/specs/fw_cfg.txt

In order to pass the profile to the VM, the following QEMU command
line is used: -fw_cfg name=opt/keyname,file=somedata.txt

For the AutoYaST support, the key "opt/com.suse/autoinst" is used.
So: -fw_cfg name=opt/com.suse/autoinst,file=autoinst.xml

It is used as last resort, to allow overriding it with the media and
the kernel command line options.
@wfeldt
Copy link
Member

wfeldt commented Jul 25, 2018

Finally, not needed.

@wfeldt wfeldt closed this Jul 25, 2018
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.

None yet

2 participants