summaryrefslogtreecommitdiffstats
path: root/sysprep/main.ml
Commit message (Collapse)AuthorAgeFilesLines
* sysprep: Improve error messages.Richard W.M. Jones2012-08-161-1/+20
|
* sysprep: Change perform callback to perform_on_filesystems and ↵Richard W.M. Jones2012-07-251-3/+12
| | | | | | | | | perform_on_devices. Operations that need to work directly on guest block devices will fail because the block devices are busy. Therefore add a phase with the filesystems unmounted, and allow operations to specify that they need to work in this phase.
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-141-1/+1
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* Add gettext support for OCaml tools (virt-resize, virt-sparsify, virt-sysprep).Richard W.M. Jones2012-05-011-38/+41
| | | | | | | | Note that this support is optional: To enable it, install the ocaml-gettext library from http://forge.ocamlcore.org/projects/ocaml-gettext . If this library is not installed, then configure detects this and inserts dummy gettext functions that do nothing.
* sysprep: Sort and align all arguments (thanks Wanlong Gao).Richard W.M. Jones2012-04-111-4/+8
|
* sysprep: Print some logging by default.Richard W.M. Jones2012-04-111-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | It can be disabled using the --quiet option. The logging looks like: Examining the guest ... Performing "cron-spool" ... Performing "dhcp-client-state" ... Performing "dhcp-server-state" ... Performing "hostname" ... Performing "logfiles" ... Performing "mail-spool" ... Performing "net-hwaddr" ... Performing "random-seed" ... Performing "rhn-systemid" ... Performing "script" ... Performing "smolt-uuid" ... Performing "ssh-hostkeys" ... Performing "udev-persistent-net" ... Performing "utmp" ... Performing "yum-uuid" ... Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Rewrite virt-sysprep.Richard W.M. Jones2012-03-311-0/+232