summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.19.46.1.19.46Richard W.M. Jones2012-10-0120-17458/+1265
|
* configure: Rearrange build options report in ./configure output.Richard W.M. Jones2012-10-011-11/+11
| | | | | This had accreted over a long period of time, so it wasn't arranged very logically.
* daemon: When sorting devices, don't fail on mix of /dev/sd and /dev/vdRichard W.M. Jones2012-09-281-0/+8
| | | | | | | | | | | | | | (RHBZ#858128). If compare_device_names was given two devices with devices with different interfaces (eg. /dev/sda and /dev/vda) then it would try to compare the partition numbers, and fail when it could parse them. It's arguable what we should be doing in this case (except for strongly discouraging people from using the interface feature), but let's at least not cause the daemon to assert-fail. Found by Red Hat QA, thanks Mohua Li.
* inspection: Fix calls to case_sensitive_path (RHBZ#858126).Richard W.M. Jones2012-09-285-34/+35
| | | | | | | | | | | | | | | | | | | | | Don't assume that if guestfs_case_sensitive_path returns NULL, that it means the file does not exist. The (previously undefined) behaviour of case_sensitive_path was that a NULL return meant "either the file doesn't exist or some other error". However in commit 973581780d8a006f336684fef6762801402d775d this was changed so that if the last element of the path didn't exist, it was assumed to be a new file and the (non-NULL) path of the new file is returned. This change breaks code (including in libguestfs) which tries to use case_sensitive_path as a dual-purpose call to fix-up a path for Windows and test if the file exists. Such code should be rewritten so that it explicitly tests for file existence after calling case_sensitive_path. I examined all the calls to case_sensitive_path in libguestfs and modified them where necessary.
* virt-edit: If case_sensitive_path returns an error, exit.Richard W.M. Jones2012-09-281-0/+2
| | | | | | | The 'windows_path' function was blindly copied from virt-cat. In virt-cat, errors are checked by the caller to 'windows_path'. But virt-edit lacks this check. Change the function in virt-edit to add a check and exit on error.
* Version 1.19.45.1.19.45Richard W.M. Jones2012-09-2620-4793/+5343
|
* sysprep: Typo in man page: resets -> reset.Richard W.M. Jones2012-09-261-1/+1
|
* run: Label tmp directory.Richard W.M. Jones2012-09-262-7/+1
| | | | | | | | | There's not really any point just documenting that people should label the tmp directory, when we can just label it. So change the ./run script so it calls chcon. However it's not a failure if chcon doesn't work. If SELinux is not installed or is disabled, then labelling will fail.
* recipes: Add a section about diagnosing hanging guests.Richard W.M. Jones2012-09-261-0/+29
|
* test-tool: Add prominent warning about including complete output.Richard W.M. Jones2012-09-261-0/+11
| | | | | | | Everyone ignores the documentation. Everyone ignores me even when I specifically tell them to include the complete output. Place a prominent notice at the beginning of the output.
* test-tool: guestfs_get_path might return NULL.Richard W.M. Jones2012-09-261-1/+1
| | | | | It would almost certainly indicate a bug if it happens, but don't rely on printf not segfaulting if it did happen.
* Revert "test-launch-race: Add SELinux label to $TMPDIR."Richard W.M. Jones2012-09-261-5/+0
| | | | | | Because RHBZ#860235 has been fixed in selinux-policy 3.11.1-25.fc18. This reverts commit 7fc838cca334ccf3d388c5598ff7fae88dbe4513.
* guestfs-testing(1): Start by running libguestfs-test-tool.Richard W.M. Jones2012-09-261-0/+14
|
* remove the useless "h" optionWanlong Gao2012-09-264-12/+0
| | | | | | "h" option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* FAQ: Miscellaneous cleanups.Richard W.M. Jones2012-09-251-12/+68
| | | | | | | - Use S<...> for non-breaking spaces. - Arrange the builds section better. - Add a section on enabling sVirt. - Other small fixes.
* docs: Link to guestfs-recipes(1) from intro in guestfs(3).Richard W.M. Jones2012-09-251-0/+2
|
* gobject: No need to remove old API files.Richard W.M. Jones2012-09-251-11/+0
| | | | | In commit 3d84ca76fec491015030daa53e9122b03032ddfd we changed the generator so it now automatically removes old API files.
* test-launch-race: Add SELinux label to $TMPDIR.Richard W.M. Jones2012-09-251-0/+5
| | | | | | This is a temporary workaround for https://bugzilla.redhat.com/show_bug.cgi?id=860235 which can be removed once this bug is fixed.
* libvirt >= 0.10.2 required for libvirt backend.Richard W.M. Jones2012-09-242-2/+2
|
* Version 1.19.44.1.19.44Richard W.M. Jones2012-09-2420-16821/+17580
|
* Fix tests/bigdirs/test-big-dirs.pl to use mke2fsWanlong Gao2012-09-242-20/+4
| | | | | | | | | | | Let tests/bigdirs/test-big-dirs.pl uses mke2fs to create small inode ratio files. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Fix invocation of mke2fs with optional arguments. - Run the test to check it works.
* NEW API:ext:mke2fsWanlong Gao2012-09-245-4/+464
| | | | | | | | | | | New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Update description. - Run and fix the tests. - Remove bogus filename from po/POTFILES.
* tests/bigdirs: Add empty TESTS= rule.Richard W.M. Jones2012-09-241-3/+4
| | | | | | Without this empty rule, automake doesn't generate the rest of the testing infrastructure, so you can't enable the test yourself by doing 'make check TESTS=test-big-dirs.pl'.
* generator: xdr: Re-code procedure table.Richard W.M. Jones2012-09-242-8/+14
| | | | This is just code motion.
* generator: Tidy up comments in guestfs_protocol.x.Richard W.M. Jones2012-09-241-9/+19
|
* generator: Allow an optional emacs-mode at the top of generated files.Richard W.M. Jones2012-09-241-2/+7
|
* generator: The default input files are 'generator/ *.ml' [sic].Richard W.M. Jones2012-09-243-3/+3
| | | | | | | | Since generator source files were renamed, the comment at the top of each generated file was wrong. Unfortunately we cannot allow /* to appear within a comment, so the space is necessary.
* sysprep: handle at jobs in cron-spool operationOlaf Hering2012-09-221-0/+6
| | | | | | | cron-spool claims to remove at jobs, but it has no code to actually do that. Add patterns to remove files in known at spool locations. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* sysprep: handle distro specific sysv scriptsOlaf Hering2012-09-221-11/+70
| | | | | | | | | | | | | Currently firstboot would only work on redhat-based images. Handle redhat-based, suse-based and debian guests, error out in case of an unknown distro. Update firstboot.sh: - make sure scripts exists and can be executed - add LSB header to avoid insserv warnings later on - run script only if called with "start" Update functions, pass only required options. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* test-launch-race: Add comment.Richard W.M. Jones2012-09-221-1/+1
|
* Version 1.19.43.1.19.43Richard W.M. Jones2012-09-2120-12082/+12501
|
* sysprep: handle suse-based in hostname operationOlaf Hering2012-09-211-1/+1
| | | | Signed-off-by: Olaf Hering <olaf@aepfle.de>
* launch: Handle guestfs_config qemu_value == NULL.Richard W.M. Jones2012-09-212-6/+8
| | | | | | | | | | | | | The second parameter to 'config' may be NULL. In commit 52fa23d74f6308daf804c2330b0b27e0b4412594 (refactoring of guestfs_config) the code this got lost, and guestfs_config would segfault if qemu_value was NULL. Also this fixes the libvirt method to handle the same case. I checked libguestfs-1.18 and -1.16 branches, and this problem does NOT affect them.
* Update SuSE Linux detection.Olaf Hering2012-09-216-4/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update SuSE Linux detection. Up to now everything with a /etc/SuSE-release file was treated as openSuSE. With this change SLES based distributions such as "SUSE Linux Enterprise Server", "SUSE Linux Enterprise Desktop" and "Novell Linux Desktop" will show up as "sles". The 'opensuse' detection was updated to handle older openSuSE releases as well as the well known SuSE Linux releases, starting from 6.0. Everything else with a /etc/SuSE-release file will show up as "suse-based". Here is a collection of release files: ==> Dist/6.0/etc/SuSE-release <== SuSE Linux 6.0 (i386) VERSION = 6.0 ==> Dist/6.1/etc/SuSE-release <== SuSE Linux 6.1 (i386) VERSION = 6.1 ==> Dist/6.2/etc/SuSE-release <== SuSE Linux 6.2 (i386) VERSION = 6.2 ==> Dist/6.3/etc/SuSE-release <== SuSE Linux 6.3 (i386) VERSION = 6.3 ==> Dist/6.4/etc/SuSE-release <== SuSE Linux 6.4 (i386) VERSION = 6.4 ==> Dist/7.0/etc/SuSE-release <== SuSE Linux 7.0 (i386) VERSION = 7.0 ==> Dist/7.1/etc/SuSE-release <== SuSE Linux 7.1 (i386) VERSION = 7.1 ==> Dist/7.2/etc/SuSE-release <== SuSE Linux 7.2 (i386) VERSION = 7.2 ==> Dist/7.3/etc/SuSE-release <== SuSE Linux 7.3 (i386) VERSION = 7.3 ==> Dist/8.0/etc/SuSE-release <== SuSE Linux 8.0 (i386) VERSION = 8.0 ==> Dist/8.1/etc/SuSE-release <== SuSE Linux 8.1 (i386) VERSION = 8.1 ==> Dist/8.2/etc/SuSE-release <== SuSE Linux 8.2 (x86-64) VERSION = 8.2 ==> Dist/9.0/etc/SuSE-release <== SuSE Linux 9.0 (x86-64) VERSION = 9.0 ==> Dist/9.1/etc/SuSE-release <== SuSE Linux 9.1 (x86-64) VERSION = 9.1 ==> Dist/9.2/etc/SuSE-release <== SuSE Linux 9.2 (x86-64) VERSION = 9.2 ==> Dist/9.3/etc/SuSE-release <== SuSE Linux 9.3 (x86-64) VERSION = 9.3 ==> Dist/10.0/etc/SuSE-release <== SUSE LINUX 10.0 (X86-64) OSS VERSION = 10.0 ==> Dist/10.1-remastered/etc/SuSE-release <== SUSE LINUX 10.1 (X86-64) VERSION = 10.1 ==> Dist/10.1/etc/SuSE-release <== SUSE Linux 10.1 (X86-64) Beta8 VERSION = 10.1 ==> Dist/10.2/etc/SuSE-release <== openSUSE 10.2 (X86-64) VERSION = 10.2 ==> Dist/10.3/etc/SuSE-release <== openSUSE 10.3 (X86-64) VERSION = 10.3 ==> Dist/11.0/etc/SuSE-release <== openSUSE 11.0 (X86-64) VERSION = 11.0 ==> Dist/11.1/etc/SuSE-release <== openSUSE 11.1 (x86_64) VERSION = 11.1 ==> Dist/11.2/etc/SuSE-release <== openSUSE 11.2 (x86_64) VERSION = 11.2 ==> Dist/11.3/etc/SuSE-release <== openSUSE 11.3 (x86_64) VERSION = 11.3 ==> Dist/11.4/etc/SuSE-release <== openSUSE 11.4 (x86_64) VERSION = 11.4 CODENAME = Celadon ==> Dist/12.1/etc/SuSE-release <== openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus ==> Dist/12.2/etc/SuSE-release <== openSUSE 12.2 (x86_64) VERSION = 12.2 CODENAME = Mantis ==> Dist/sles8/etc/SuSE-release <== SuSE SLES-8 (AMD64) VERSION = 8.1 ==> Dist/sles9/etc/SuSE-release <== SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 ==> Dist/sles9sp2/etc/SuSE-release <== SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 2 ==> Dist/sles9sp3/etc/SuSE-release <== SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 3 ==> Dist/sles9sp4/etc/SuSE-release <== SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 4 ==> Dist/sled10/etc/SuSE-release <== SUSE Linux Enterprise Desktop 10 (x86_64) VERSION = 10 ==> Dist/sled10sp1/etc/SuSE-release <== SUSE Linux Enterprise Desktop 10 (x86_64) VERSION = 10 PATCHLEVEL = 1 ==> Dist/sled10sp2/etc/SuSE-release <== SUSE Linux Enterprise Desktop 10 (x86_64) VERSION = 10 PATCHLEVEL = 2 ==> Dist/sled10sp3/etc/SuSE-release <== SUSE Linux Enterprise Desktop 10 (x86_64) VERSION = 10 PATCHLEVEL = 3 ==> Dist/sled10sp4/etc/SuSE-release <== SUSE Linux Enterprise Desktop 10 (x86_64) VERSION = 10 PATCHLEVEL = 4 ==> Dist/sled11/etc/SuSE-release <== SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 0 ==> Dist/sled11sp1/etc/SuSE-release <== SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 ==> Dist/sled11sp2/etc/SuSE-release <== SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 ==> Dist/sles10/etc/SuSE-release <== SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 ==> Dist/sles10sp1/etc/SuSE-release <== SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 1 ==> Dist/sles10sp2/etc/SuSE-release <== SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 2 ==> Dist/sles10sp3/etc/SuSE-release <== SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 3 ==> Dist/sles10sp4/etc/SuSE-release <== SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 4 ==> Dist/sles11/etc/SuSE-release <== SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 0 ==> Dist/sles11sp1/etc/SuSE-release <== SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 ==> Dist/sles11sp2/etc/SuSE-release <== SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 Signed-off-by: Olaf Hering <olaf@aepfle.de>
* ./run: Keep gnome-keyring from disturbing test script outputHilko Bengen2012-09-201-0/+4
|
* ./run: Make sure that the temporary directory exists so test scripts can ↵Hilko Bengen2012-09-201-0/+1
| | | | produce output files
* python: PyInt_* no longer exists in python3, replace with PyLong_*Hilko Bengen2012-09-201-1/+1
|
* rename local variable to avoid clash with match macroOlaf Hering2012-09-201-3/+3
| | | | | | match will expand to guestfs___match, rename the local variable to avoid clash. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* docs: Add links to various guestfs-* man pages from guestfs(3).Richard W.M. Jones2012-09-201-0/+5
|
* recipes: Add section about uploading raw filesystem content.Richard W.M. Jones2012-09-201-0/+24
|
* launch: Make the "launched failed" message more explanatory.Richard W.M. Jones2012-09-204-4/+21
| | | | | | | Since this is the most common error seen by people who have installation problems, buggy qemu, etc, and since no one reads the FAQ, describe in this error message what resources are available to debug launch problems.
* sysprep: handle SuSE in random-seed operationOlaf Hering2012-09-191-0/+1
| | | | Signed-off-by: Olaf Hering <olaf@aepfle.de>
* sysprep: add zypper to package-manager-cache operationOlaf Hering2012-09-191-0/+2
| | | | | | | | libzypp and zypper store their cache files in /var/cache/zypp/{packages,raw,solv}/ and /var/cache/zypper/RPMS/ Add a single pattern to match both cases. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* sysprep: remove apache2, audit and ntp in logfile operationOlaf Hering2012-09-191-0/+4
| | | | | | Add more entries to the dump ground of logfile patterns. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* sysprep: handle SuSE in hostname operationOlaf Hering2012-09-191-0/+4
| | | | | | | | SuSE based installations store the hostname in /etc/HOSTNAME. Add code to handle both opensuse and sles. Code to properly detect the latter will be added with another patch. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* sysprep: Create /etc/sysconfig/network file if it doesn't exist (RHBZ#858696).Richard W.M. Jones2012-09-191-10/+19
|
* extra-tests: Re-run the tests against upstream libvirt.Richard W.M. Jones2012-09-182-0/+56
|
* extra-tests: Clean up some comments about the upstream qemu tests.Richard W.M. Jones2012-09-181-3/+4
|
* extra-tests: Add scripts used by these tests to EXTRA_DIST.Richard W.M. Jones2012-09-181-1/+5
|
* Version 1.19.42.1.19.42Richard W.M. Jones2012-09-1720-15105/+15372
|