<div dir="ltr"><div>Howdy!</div><div><br></div><div>Since we start using libosinfo to provide the install-scripts for gnome-boxes we have a pending task related to the command-line passed to load the install-script.</div><div>
Nowadays, the command-line hardcoded for Fedora format and it is okay, once we only support unattended-installations for Fedora's flavors of Linux. But the family is growing fast, fortunately.</div><div><br></div><div>
A few days ago Zeeshan found out how the unattended-installations work on Debian/Ubuntu. A few hours ago I found out how it works for OpenSuSE.</div><div><br></div><div>So, our current cases are:</div><div>- Fedora/RHEL/CentOS: ks=hd:<device>:/<filename></div>
<div>- OpenSuSE: autoyast=device://<device>/autoinst.xml</div><div>- Debian/Ubuntu: decompress the initrd, put the file into it, compress again and boot with this fresh compressed initrd.</div><div><br></div><div>The 3rd method is also supported by Fedora/RHEL/CentOS, but is not by OpenSuSE).</div>
<div>Ah, so bad, looks like we don't have a standard way to follow.</div><div><br></div><div>With the problem presented, let me ask the 1 million dollars question: How to workaround this problem?</div><div><br></div><div>
I'm going to add OpenSuSE install-scripts for Libosinfo and I think we will want to use these scripts on Boxes.</div><div>Thinking a bit here, at least for Fedora* and OpenSuSE, we could add a property in the install-scripts, "command-line-format" to specify the format. Something contenting:</div>
<div>- installation method (ks, autoyast) -- could be represented by "!"</div><div>- installation method option (hd, device) - could be represented by "@"</div><div>- device where the script will be put in (sda, sdb) - could be represented by "#"</div>
<div>- expected filename (fedora.ks, autoinst.xml)</div><div>So, we could set the propert, for Fedora, as: !=@:#/$. And for OpenSuSE as: !=@;//#/$.</div><div>Returning this string, the application could ask for libosinfo about the each property discussed.</div>
<div><br></div><div>Ah, in the install-script file it could be represented as:</div><div><command-line-format></div><div>  <format>!=@:#/$.</format></div><div>  <installation-method>hd</installation-method></div>
<div>...</div><div><br></div><div><br></div><div>What do you think about this?</div><div><br></div><div style>Best Regards,</div><div>-- </div><div>Fabiano Fidêncio</div><div>
</div></div>