Skip to content

WIP: Jonathan/rpm export

Jonathan Maw requested to merge jonathanmaw/ybd:jonathan/rpm-export into master

These commits represent integrating Tristan's rpm export into ybd master. There are still parts that need work, and I am very reluctant to merge it right now, because that will doubtless upset some people. Things that I think still need doing:

  • It currently puts RPMs in deployment/RPMS, and falls over if it starts exporting RPMs when deployment/RPMS already exists. I think the best solution to this is to put the RPMs in a subdirectory that is unique to the system that's been built.
  • It currently exports RPMs all the time. I think this should be optional, and default to off. Given ybd's command-line doesn't support optional arguments, this ought to be set in ybd.conf
  • It should take definitions' system-integration commands and add them as a %postinst in the rpm spec.
  • It needs to populate the RPM database, somehow.

Also, there's the option of taking it all and trying to rewrite it as a write extension, but I think that would be a serious amount of work, as I'm not sure if we even have access to all the information we'd need within a write extension.

Merge request reports