6527 Commits

Author SHA1 Message Date
Richard W.M. Jones
63f0ee9c57 Version 1.25.48. 1.25.48 2014-03-26 00:05:45 +00:00
Richard W.M. Jones
218ac6996b Further updates to the release notes, for 1.26. 2014-03-25 23:53:11 +00:00
Richard W.M. Jones
36f4f10581 Further updates to release notes, for 1.26. 2014-03-25 23:31:39 +00:00
Richard W.M. Jones
cec31436f8 customize: Rename main.ml to customize_main.ml.
The OCaml compiler isn't happy when two modules have the same name in
different directories.  Since customize/ contains a library of modules
used in other directories, and since those directories may have
main.ml files too, we need to rename 'customize/main.ml' to
'customize/customize_main.ml'.
2014-03-25 22:41:19 +00:00
Richard W.M. Jones
1a4709147a customize: Add various options from virt-builder.
This adds the following options to virt-customize:

  --attach
  --attach-format
  -m / --memsize
  --network / --no-network
  --smp

This fixes commit 2b208d84db.
2014-03-25 22:21:40 +00:00
Richard W.M. Jones
87fcb4df03 Add customize subdirectory to ./run script.
This fixes commit 2b208d84db.
2014-03-25 22:09:14 +00:00
Richard W.M. Jones
36f179fdfa Begin working on release notes for libguestfs 1.26 release. 2014-03-25 16:06:25 +00:00
Richard W.M. Jones
a70dd85a17 aarch64: Use -M virt to specify virtual machine type.
Thanks: Paolo Bonzini
2014-03-25 14:54:40 +00:00
Richard W.M. Jones
d6072de4ff arm: Replace #ifdef with #if defined, etc.
No functional change.
2014-03-25 13:46:13 +00:00
Richard W.M. Jones
afb74f104d aarch64: Cannot emulate IDE, like all non-PC. 2014-03-25 13:46:13 +00:00
Richard W.M. Jones
219c2ddf1b aarch64: This has no working hpet emulation, like ARM 32 bit. 2014-03-25 13:46:13 +00:00
Richard W.M. Jones
f8c83e801a aarch64: This has no PCI, like ARM 32 bit. 2014-03-25 13:46:13 +00:00
Richard W.M. Jones
d396ccb470 Open release notes for 1.26 release. 2014-03-25 13:11:45 +00:00
Richard W.M. Jones
40cac10b62 Update TODO with Python bindings suggestion. 2014-03-25 13:11:45 +00:00
Richard W.M. Jones
3d79c51a28 Update API support. 2014-03-25 13:11:23 +00:00
Richard W.M. Jones
7ad1683dae Version 1.25.47. 1.25.47 2014-03-25 12:51:25 +00:00
Richard W.M. Jones
2b208d84db Add virt-customize standalone tool.
This includes some simple tests and a manual page.
2014-03-25 12:41:04 +00:00
Richard W.M. Jones
aa3bc8b65d sysprep: Remove the --autorelabel (and related) options.
The customize module includes an --selinux-label option which can run
'fixfiles restore' (on most SELinux guests) or set /.autorelabel (on
some older ones).

Commit 49014f81f3 renamed the old
--selinux-label option to --autorelabel, but note this was not
included in a stable version of libguestfs.

Note this change leaves a bunch of now redundant code for detecting if
we created a new file in the guest.
2014-03-25 12:41:04 +00:00
Richard W.M. Jones
ae6f726ecc sysprep: Use customize module for customizing the guest after sysprepping.
Note this removes the following modules (all replaced by 'customize'):

 - delete       [--delete, --scrub]
 - firstboot    [--firstboot]
 - hostname     [--hostname]
 - password     [--password, --password-crypto, --root-password]
 - random-seed
 - timezone     [--timezone]
2014-03-25 12:41:04 +00:00
Richard W.M. Jones
51834ad219 customize: Add a --password option for setting user passwords. 2014-03-25 12:41:04 +00:00
Richard W.M. Jones
4b0b3589e8 customize: Move virt-customize-related code to a separate directory.
Split virt-builder into build and customize steps, so that we can spin
off a separate tool called 'virt-customize'.  This commit does not in
fact create such a tool, but it moves all the common code into a
library, in the customize/ subdirectory of the source.

Although this is mostly refactoring, it does change the order in which
virt-builder command line arguments are processed, so they are now
processed in the order they appear, not the inflexible fixed order
used before.
2014-03-25 12:41:04 +00:00
Richard W.M. Jones
8e386fc1be sysprep: Pass debug and quiet flags to all modules.
Also use the Common_utils.make_message_function function to print
messages (same as virt-builder).
2014-03-25 12:41:04 +00:00
Richard W.M. Jones
1edfdcbd58 sysprep: Allow order of operations to be specified by modules. 2014-03-25 12:41:04 +00:00
Richard W.M. Jones
f450fb4106 sysprep: Perform operations in alphabetical order.
Previously we ran them in essentially a random order, although it
might have looked alphabetical in some cases because the modules are
loaded in order.
2014-03-25 12:41:04 +00:00
Hilko Bengen
4a9581668c appliance: Not all of Grub is needed, only grub-install 2014-03-25 12:01:00 +01:00
Richard W.M. Jones
0116a482fc Update gnulib to latest.
Includes a fix for the missing 'git-log-fix' file.
https://lists.gnu.org/archive/html/bug-gnulib/2014-03/threads.html#00019
2014-03-25 10:47:53 +00:00
Pino Toscano
f80fc724bc php: raise the per-test timeout to 300 secs
Some tests might spawn an appliance, which will take time on slower
architectures and on some virtualized environments.
Hence raise the per-test timeout from the default of 60s to 300s (which
should be hopefully enough for now).
2014-03-24 17:05:14 +01:00
Pino Toscano
483f0e3096 virt-sparsify --in-place: remove image if discard is not supported
No point leaving it around if the test has been skipped.
2014-03-24 17:05:14 +01:00
Richard W.M. Jones
08234a1c48 po-docs: Do not translate "__AVAILABILITY__" placeholder.
This fixes commit da122e382f.
2014-03-24 14:19:32 +00:00
Pino Toscano
ad2c6a13b3 docs: remove customize-related files
The work on them has not been committed yet.
2014-03-24 15:13:13 +01:00
Richard W.M. Jones
da5b8b6d61 appliance: Fix quoting so that DEBIAN isn't always defined.
Because of incorrect quoting previously, the DEBIAN symbol
was always defined.
2014-03-23 21:56:29 +00:00
Richard W.M. Jones
07bf740238 Update gnulib to latest version. 2014-03-23 19:40:44 +00:00
Richard W.M. Jones
26599da373 ocaml: Enable parallel builds.
Commit f75142c577 disabled parallel
builds in the ocaml subdirectory (which was the correct thing to do).
This made building the OCaml tests in particular very slow.  Therefore
fix things so that parallel builds can be used again.

See also discussion here about different approaches:

https://www.redhat.com/archives/libguestfs/2014-March/thread.html#00223

This reintroduces commit dce94f3e26.
2014-03-23 18:35:35 +00:00
Richard W.M. Jones
da122e382f Update Ukrainian translations.
Contributed by: Yuri Chornoivan (via Transifex)
2014-03-23 12:59:18 +00:00
Richard W.M. Jones
f42769f94b virt-make-fs: Fix typo in error string.
Thanks: Yuri Chornoivan
2014-03-23 12:09:01 +00:00
Richard W.M. Jones
20f412637e builder: Fix typo in string.
Thanks: Yuri Chornoivan
2014-03-22 14:08:45 +00:00
Pino Toscano
e589b6e823 builder: do not parse the same repository file name twice
When parsing the repository configuration files, track the file names
parsed, and in case of same file name in multiple location consider only
the one in the directory coming before others in the prioritised list of
paths.

This way it is possible to "shadow" a configuration file in a system
path with one with the same name in a local directory, for example.
2014-03-20 16:57:29 +01:00
Pino Toscano
603ad40c5a builder: allow the index parser to parse files with no sections
Gracefully handle files with no sections; extend the validate.sh test
to try to validate an empty file.
2014-03-20 16:39:40 +01:00
Pino Toscano
fa0fed8a2d builder: allow to run website tests under valgrind 2014-03-20 16:39:40 +01:00
Richard W.M. Jones
37ed019f53 Version 1.25.46. 1.25.46 2014-03-20 15:28:57 +00:00
Richard W.M. Jones
4edf659aa0 php: Include new location of tests in EXTRA_DIST.
This fixes commit 251a1934c9.
2014-03-20 15:24:34 +00:00
Pino Toscano
62875c88be builder: clean the parsing structs on error 2014-03-20 15:36:38 +01:00
Pino Toscano
c6c27620d0 builder: rename and make public the section/field free functions
They will be needed also elsewhere.
2014-03-20 15:36:38 +01:00
Pino Toscano
87ed6365e4 builder/virt-index-validate: try to cleanup in any occasion
Always close the file (ignoring its result) after a parsing, and cleanup
the parse_context object before any exit().

This eases the debugging of memory issues in the actual parser.
2014-03-20 15:36:38 +01:00
Richard W.M. Jones
c7639495d7 Revert "appliance: Remove genisoimage from packagelist."
This reverts commit cd996642e0.

The daemon uses 'isoinfo' which is part of this package.

Thanks: Pino Toscano.
2014-03-20 14:34:58 +00:00
Richard W.M. Jones
cd996642e0 appliance: Remove genisoimage from packagelist.
It is not used by the daemon as far as I can tell.
2014-03-20 13:49:19 +00:00
Richard W.M. Jones
c4dc70f8c4 podwrapper: Remove =encoding from input files and add it back in podwrapper.
This changes podwrapper so that the input (POD) files should not
contain an =encoding directive.  However they must be UTF-8.
Podwrapper then adds the '=encoding utf8' directive back during final
generation.

This in particular avoids problems with nested =encoding directives in
fragments.  These break POD, and are undesirable anyway.
2014-03-20 13:47:19 +00:00
Richard W.M. Jones
ad33a5434c po-docs: Filter the po4a warning and =encoding line. 2014-03-20 13:47:11 +00:00
Richard W.M. Jones
420d324555 po-docs: There are no *.pl files in the po-docs subdirectories any longer. 2014-03-20 13:47:00 +00:00
Richard W.M. Jones
01548fd5b7 generator: Generate copyright notice in generated POD fragments.
Using =begin comment ... =end comment.
2014-03-20 13:46:53 +00:00