summaryrefslogtreecommitdiffstats
path: root/sysprep/sysprep_operation_logfiles.ml
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-04-21 22:27:39 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-04-21 22:28:15 +0100
commit8d41470b6fc81b742896996393812b274514bca2 (patch)
tree5efb749ed701c12f1bc9f3d737eb92fdbe0712ab /sysprep/sysprep_operation_logfiles.ml
parent97ef9afca77ee81a6c0d1a30cf4d367d7cefa2e3 (diff)
downloadlibguestfs-8d41470b6fc81b742896996393812b274514bca2.tar.gz
libguestfs-8d41470b6fc81b742896996393812b274514bca2.tar.xz
libguestfs-8d41470b6fc81b742896996393812b274514bca2.zip
sysprep: Don't enable every option by default.
All current operations are enabled by default. Also: * The POD description is split into a heading and the description body. * An 'enabled_by_default' flag is added to the structure.
Diffstat (limited to 'sysprep/sysprep_operation_logfiles.ml')
-rw-r--r--sysprep/sysprep_operation_logfiles.ml9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml
index b4c6ea9b..2ad3726a 100644
--- a/sysprep/sysprep_operation_logfiles.ml
+++ b/sysprep/sysprep_operation_logfiles.ml
@@ -59,10 +59,13 @@ let logfiles_perform g root =
let logfiles_op = {
name = "logfiles";
- pod_description = sprintf "\
-Remove many log files. On Linux the following files are removed:
+ enabled_by_default = true;
+ heading = "Remove many log files from the guest";
+ pod_description = Some (
+ sprintf "\
+On Linux the following files are removed:
-%s" globs_as_pod;
+%s" globs_as_pod);
extra_args = [];
perform = logfiles_perform;
}