Hi Niel,

On 08/09/2017 03:52 PM, Niel Bornstein wrote:
>
> Has anyone put any thought into adding the ability to export a Red Hat
> or CentOS system to kickstart? If not, can someone give a quick primer
> on which files to add/modify in order to implement it?
>
there are no plans for that but it would be possible of course.


For adding kickstart to Machinery I would look at the export class for
AutoYaST `lib/autoyast.rb` and create one for kickstart. This new
exporter class would then need to be imported under `lib/machinery.rb`
and a new command `export-kickstart` added to `lib/cli.rb`. Unit tests
should be part of a pull request too which are located under
`spec/unit/`, but existing tests for the the AutoYaST exporter should
help quite a bit in creating those for kickstart.

Running `git grep -i autoyast` inside of the Machinery git directory is
the easiest way to find all places were the AutoYaST export is used and
where the Kickstart exporter would needed to be added.

If you got any additional questions let us know.

Regards
Tim



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Machinery mailing list
Machinery@lists.suse.com
http://lists.suse.com/mailman/listinfo/machinery

Reply via email to