This patch series adds a new virt-sysprep operation to offline unenroll
a guest from FreeIPA. It does so by removing some configuration files
and certificates.
It requires a change in libguestfs-common before the series is applied.
Pino Toscano (4):
customize: port do_run to run_in_guest_command
sysprep: add a update_system_ca_store side effect
sysprep: ca-certificates: request system CA store update
sysprep: add FreeIPA offline unenrollment (RHBZ#1789592)
customize/customize_run.ml | 48 ++------------
sysprep/Makefile.am | 1 +
sysprep/main.ml | 5 ++
sysprep/sysprep_operation.ml | 3 +
sysprep/sysprep_operation.mli | 2 +
sysprep/sysprep_operation_ca_certificates.ml | 8 ++-
sysprep/sysprep_operation_unenroll_freeipa.ml | 65 +++++++++++++++++++
sysprep/utils.ml | 32 +++++++++
sysprep/utils.mli | 4 ++
9 files changed, 126 insertions(+), 42 deletions(-)
create mode 100644 sysprep/sysprep_operation_unenroll_freeipa.ml
--
2.25.4