6401 Commits

Author SHA1 Message Date
Richard W.M. Jones
96f6a8f57c Version 1.25.42. 1.25.42 2014-03-06 15:59:35 +00:00
Hilko Bengen
e1fdc43539 Remove two more files that are generated by configure 2014-03-05 18:31:02 +01:00
Richard W.M. Jones
5213d7b960 tests/md: Remove bogus test skip which tried to appliance hostfiles.
This file no longer exists since supermin >= 5.

Bug identified by Pino Toscano.
2014-03-05 16:13:49 +00:00
Hilko Bengen
bdcc37b888 Debian: Add systemd-related libraries (for guestfsd) to packagelist 2014-03-04 19:17:40 +01:00
Hilko Bengen
7c21e129c9 Do not ship test-qemu-drive-libvirt.xml with tarball as it is generated by configure 2014-03-04 18:56:07 +01:00
Hilko Bengen
b30e2cf122 Fix out-of-tree build: Do not accidentally build mllib components in srcdir 2014-03-04 00:06:09 +01:00
Hilko Bengen
d7e3aea7bc Fixes for various tests in out-of-tree builds 2014-03-04 00:06:09 +01:00
Hilko Bengen
0048b5dc32 Fix out-of-tree appliance build 2014-03-04 00:06:09 +01:00
Hilko Bengen
876983365a More fixes for situations where ocamlopt is not available
- run bindtests.opt only if available
- use ocamlc -custom
- Don't try to install native code if it hasn't been built (Thanks to Olaf Hering)
2014-03-04 00:06:07 +01:00
Richard W.M. Jones
0b285e07a0 Version 1.25.41. 1.25.41 2014-03-03 22:06:58 +00:00
Richard W.M. Jones
e87e377cfb appliance: Ensure that supermin.d directory is installed properly.
Commit 0a966727ab had a missing
backslash in the list of files, so that 'make install' didn't install
all the files.
2014-03-03 21:58:42 +00:00
Richard W.M. Jones
3acb4343ea Version 1.25.40. 1.25.40 2014-03-03 17:22:06 +00:00
Richard W.M. Jones
d37dd9b055 Add new logo to EXTRA_DIST.
This fixes commit d73531a0aa.
2014-03-03 17:22:06 +00:00
Richard W.M. Jones
0a966727ab appliance: Remove conditionals in appliance/Makefile.am.
If appliance is disabled, the whole appliance/ subdirectory is
skipped.

If appliance is enabled, we can assume that the daemon is enabled too
(see previous commit) so we don't need the conditional code.  That
conditional code didn't work since the supermin 5 rewrite.
2014-03-03 17:12:13 +00:00
Richard W.M. Jones
a6d72be984 build: Don't allow --disable-daemon and --enable-appliance together.
This makes no sense, since the daemon is contained in the appliance so
you cannot build a (meaningful) appliance without having a daemon.
2014-03-03 17:12:13 +00:00
Pino Toscano
631c7d9241 builder: install a $sysconfdir/virt-builder -> xdg-virt-builder symlink
This way "virt-builder" appears directly in the sysconfdir.
2014-03-03 16:28:14 +01:00
Pino Toscano
6a5052a409 run: add the builddir of inspector to $PATH 2014-03-03 14:25:12 +01:00
Hilko Bengen
31b16a9dda Debian: Strip Lintian overrides, initramfs-related stuff from appliance 2014-03-03 13:18:17 +00:00
Bastien ROUCARIÈS
7adc60d955 remove last trace of ntfsprogs 2014-03-03 13:18:17 +00:00
Hilko Bengen
2b4e2eb97d Fix for systemd-based Debian systems 2014-03-03 13:18:17 +00:00
Richard W.M. Jones
e0124b9a91 logo: Make the 5 years text larger and more readable for website.
This fixes commit d73531a0aa.
2014-03-03 12:19:06 +00:00
Richard W.M. Jones
d73531a0aa logo: Add fish logo with 5 years star. 2014-03-03 11:55:24 +00:00
Richard W.M. Jones
b88f98849a appliance: Cosmetic change to the order of command line arguments of 'supermin'. 2014-03-03 11:55:24 +00:00
Richard W.M. Jones
49209b3f96 Version 1.25.39. 1.25.39 2014-03-01 16:26:12 +00:00
Richard W.M. Jones
0c4fae7cb3 configure: supermin should be listed as AC_PATH_PROG, since it is used at run time.
See top of configure.ac:

 > # NB: AC_CHECK_PROG(S) or AC_PATH_PROG(S)?
 > # Use AC_CHECK_PROG(S) for programs which are only used during build.
 > # Use AC_PATH_PROG(S) for program names which are compiled into the
 > # binary and used at run time.  The reason is so that we know which
 > # programs the binary actually uses.
2014-03-01 15:49:54 +00:00
Richard W.M. Jones
01a018a9de mageia: Add distro setting and extra packages needed by Mageia. 2014-02-28 22:49:39 +00:00
Pino Toscano
962837650c builder: add libguestfs.gpg to EXTRA_DIST
It needs to be in EXTRA_DIST, otherwise it is not put in the dist.
2014-02-28 15:07:32 +01:00
Pino Toscano
12bdd94f7e tests/luks: disable if luks is not available 2014-02-28 15:07:32 +01:00
Hilko Bengen
f75142c577 Fix building on architectures where ocamlopt is not available 2014-02-28 14:01:25 +00:00
Richard W.M. Jones
a4be4231cc launch: libvirt: Fix unused variable when libselinux is not installed. 2014-02-28 13:36:05 +00:00
Richard W.M. Jones
7c8af23430 appliance: init: Don't write to /proc/sys/kernel/hotplug when starting udev (RHBZ#1020806).
/proc/sys/kernel/hotplug is an obsolete interface for processing
hotplug events.  It is not used by modern kernels, which should set
this path to the empty string (because they have
CONFIG_UEVENT_HELPER_PATH="").

Unfortunately our udev initialization code did:

  echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug

which was intended to set this file to \0 bytes.  However on Debian,
where /bin/sh is "dash", not "bash", this writes "-e" to this file,
which breaks udev events.

Thanks: Peter Rajnoha for solving this.

https://bugzilla.redhat.com/show_bug.cgi?id=1020806#c10
2014-02-27 12:36:13 +00:00
Pino Toscano
963b0341e2 builder: update documentation
Update the documentation according to the new .conf files structure, the
drop of VIRT_BUILDER_SOURCE and VIRT_BUILDER_FINGERPRINT, the drop of
hardcoded source and its key, etc.
2014-02-27 09:59:56 +00:00
Pino Toscano
47538865f2 builder: remove the default fingerprint/pubkey
Sigchecker can still import keys from the user's keyring, so there is no
need to hardcode fingerprint and key of the index hosted on
libguestfs.org (which is now pointed to using a .conf file).
2014-02-27 09:59:56 +00:00
Pino Toscano
573cae45c3 builder: remove VIRT_BUILDER_SOURCE and VIRT_BUILDER_FINGERPRINT
Drop these two environment variables, and the implicit hardcoded source
hosted at libguestfs.org.
This means all the sources must be provided as .conf files, or at each
invocation with --source.
2014-02-27 09:59:56 +00:00
Pino Toscano
f4990bef1c builder: switch sources to .conf files
Introduce and use simple .conf files to configure the sources of indexes
for virt-builder. The location of these files is in XDG_CONFIG_DIRS /
XDG_CONFIG_HOME, so it can be easily overridden.

There are three .conf(.in) files shipped with this commit:
- "test-index.conf.in" (in "test-config"), which points to the
  "test-index" index (used in tests only); the tests are adapted to
  point to the hierarchy containing this .conf
- "libguestfs.conf.in" (in "test-website"), which points to the local
  "index.asc" (i.e. the offline copy of the libguestfs.org index);
  run(.in) will point to the hierarchy providing this .conf
- "libguestfs.conf.in" (directly among the other sources), which points
  to the online "index.asc" and it is installed in sysconfdir, along
  with the key of this repository

The tests are adapted, other than to the different way to pick sources,
to the different output of --list, as "test-index" is not signed.
2014-02-27 09:59:56 +00:00
Pino Toscano
a3f1ac9a2d builder: extract the default key to file
This is basically default_pubkey from sigchecker.ml, just extracted as
file. Not used right now, but will be in the future.
2014-02-27 09:59:56 +00:00
Pino Toscano
a21da3c801 builder: add functions to read XDG_CONFIG_DIRS and XDG_CONFIG_PATH 2014-02-27 09:59:56 +00:00
Pino Toscano
ad38e68c34 builder: use Sigchecker.gpgkey_type for the fingerprint
Use Sigchecker.gpgkey_type instead of just string as type in the
sources list; adapt the listing code (and its expected output) to that.

No behaviour change which eases a bit the addition of new sources with
other key types.
2014-02-27 09:59:56 +00:00
Pino Toscano
c09f5bbc70 builder: allow "no key" as key in Sigchecker
Additional way to distinguish no actual key available for signature
checking; make sure to not allow signing in such situation.
2014-02-27 09:59:56 +00:00
Richard W.M. Jones
fbe4dad2de appliance: init: Initialize LVM in the same way as done on physical machines.
Running vgscan appears to be unnecessary.

The -aa option of vgchange activates LVs.

The --sysinit option disables locking.
2014-02-27 09:58:47 +00:00
Richard W.M. Jones
06011270ec Version 1.25.38. 1.25.38 2014-02-26 19:41:07 +00:00
Richard W.M. Jones
eb81df93d0 appliance: Initialize local variables because gcc cannot track that they are not used uninitialized. 2014-02-26 15:21:14 +00:00
Richard W.M. Jones
b13c22668d appliance: Use supermin >= 5.
This requires the new version of supermin (5.1.0).
2014-02-26 15:21:08 +00:00
Richard W.M. Jones
d353b4a3c8 builder: Add arch= entry for Cirros.
Thanks: Pino Toscano.
2014-02-24 20:13:41 +00:00
Richard W.M. Jones
9124730df2 builder: Add arch=x86_64 entries. 2014-02-24 15:43:13 +00:00
Pino Toscano
0f3898b2f5 sysprep: use Mkdtemp to create the temporary directory
Use the safer mkdtemp instead of manually creating a path.
2014-02-24 15:40:29 +01:00
Pino Toscano
8ed905c7e6 builder: split INI C <-> OCaml glue code in own module
Move in an own module the code which calls the C
virt_builder_parse_index and does the array -> list conversion of the
result. This way this code can be easily called also in places different
than Index_parser without the need to copy the types mapping, etc.

Just code motion, no actual behaviour changes.
2014-02-24 15:08:03 +01:00
Pino Toscano
61323fabaf builder: add a mandatory 'arch' key in index files
Introduce a mandatory arch= key in all the entries of index files, to
identify which architecture is each. Adapt the long and JSON list
outputs to print also this new field.

This introduces an incompatibility with index files created with
virt-builder < 1.26, as they will be rejected until entries will have
the arch= key added (which is ignored by older virt-builder, so adding
it will not create backward-compatibility issues).
2014-02-24 11:31:35 +01:00
Richard W.M. Jones
838a3c997c Version 1.25.37. 1.25.37 2014-02-21 16:46:14 +00:00
Pino Toscano
35e53c0381 builder: allow Sigchecker to import keys from file
Extend Sigchecker so it allows both fingerprints (to be imported from
user's keyring, as before) and keys stored in files. To simplify this
process (and have the fingerprint always around), the key is imported
on Sigchecker.create time, instead of lazily at the first verification.
2014-02-21 15:21:08 +01:00