summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* tmp: Ignore libguestfsXXXXXX temporary files in tmp dir.Richard W.M. Jones2012-09-171-0/+1
|
* ./run: Write temporary file in tmp directory.Richard W.M. Jones2012-09-172-5/+7
| | | | | We have a new 'tmp' directory under the top level dir for temporary files. Use it for the temporary output from the ./run script.
* launch: libvirt: Pass TMPDIR to qemu subprocess.Richard W.M. Jones2012-09-171-0/+14
|
* New API: rm-f: remove a file, ignoring errors if it doesn't exist.Richard W.M. Jones2012-09-173-1/+46
|
* inspect: Fix segfault and error caused by earlier code cleanups.Richard W.M. Jones2012-09-172-2/+5
| | | | This fixes commit e128a627fb8f39f4f4c11b782cef895bd79f0282.
* launch: libvirt: Disable sVirt if using a custom qemu (ie. setting <emulator>).Richard W.M. Jones2012-09-171-4/+34
| | | | | | See: https://bugzilla.redhat.com/show_bug.cgi?id=857659 especially Dan's comment 4.
* Fix multiple errors where jump skips variable initialization.Richard W.M. Jones2012-09-1711-41/+54
| | | | | | | <file>: error: jump skips variable initialization [-Werror=jump-misses-init] This has only just appeared, possibly related to previous gnulib update. In any case, this is just code motion / cleanup.
* daemon: stubs: Move all arg decls to top of function.Richard W.M. Jones2012-09-171-2/+2
| | | | | | | | | | | | For some reason, argument declarations were handled inconsistently for strings and non-string arguments. Non-string arguments were all declared at the top of the function stub, where as string arguments were declared in place. Be consistent. This is just code motion.
* maint: remove a subsumed syntax-check ruleJim Meyering2012-09-171-11/+1
| | | | | | * cfg.mk (sc_prohibit_trailing_blank_lines): Remove rule. It is now subsumed by the much more efficient sc_prohibit_empty_lines_at_EOF rule in gnulib's maint.mk.
* syntax: Exclude examples and test program from <config.h> requirementRichard W.M. Jones2012-09-171-0/+1
| | | | (thanks Jim Meyering).
* syntax: Allow strncpy in launch-*.c files (thanks Jim Meyering).Richard W.M. Jones2012-09-171-0/+1
| | | | | We use strncpy, justifiably, to copy the socket name into the fixed length Unix domain sun_path buffer.
* syntax: Exclude examples from strcmp and strncmp checks (thanks Jim Meyering).Richard W.M. Jones2012-09-171-0/+2
|
* syntax: Ignore documentation when testing for magic number exit() calls ↵Richard W.M. Jones2012-09-171-0/+1
| | | | (thanks Jim Meyering).
* syntax: Exclude PO files from doubled words test (thanks Jim Meyering).Richard W.M. Jones2012-09-171-0/+1
|
* syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim ↵Richard W.M. Jones2012-09-1710-36/+1
| | | | | | | Meyering). The gnulib <fcntl.h> replacement header will now define this symbol if it's not defined already.
* syntax: Exclude period in error message checks from PHP programs (thanks: ↵Richard W.M. Jones2012-09-171-0/+1
| | | | Jim Meyering).
* syntax: Disable cast arg to free test (thanks Jim Meyering).Richard W.M. Jones2012-09-171-1/+2
|
* syntax: Exclude certain files from bindtextdomain test (thanks Jim Meyering).Richard W.M. Jones2012-09-171-0/+3
|
* Update to latest gnulib.Richard W.M. Jones2012-09-172-0/+1
|
* Version 1.19.41.1.19.41Richard W.M. Jones2012-09-1620-4335/+4803
|
* extra-tests: Write a qemu wrapper script on the fly.Richard W.M. Jones2012-09-153-26/+14
| | | | | | | | | | | Passing the $upstream_qemu environment variable is not reliable when libvirt is involved: Environment variables are passed to the first instance of the session libvirtd, but because libvirt reuses the session libvirtd, subsequent environment variable settings are lost (this is filed as RHBZ#856619). Bypass all of this by writing a custom qemu-wrapper.sh which contains the hard-coded values we want.
* extra-tests: Rerun extra tests with regular appliance attach method.Richard W.M. Jones2012-09-152-1/+35
| | | | | If libvirt is being used as the backend, rerun all the extra-tests again using the regular appliance backend.
* extra-tests: The upstream qemu test now reruns all the extra tests.Richard W.M. Jones2012-09-153-10/+12
|
* extra-tests: Fix libvirt URI so we can run tests with libvirt attach-method.Richard W.M. Jones2012-09-151-14/+10
|
* syntax: Remove trailing whitespace.Richard W.M. Jones2012-09-1512-16/+11
| | | | Found by 'make syntax-check'.
* generator: Remove inaccurate comment.Richard W.M. Jones2012-09-151-20/+0
| | | | | The correct way to extend functions is documented in generator/README. This comment was no longer accurate.
* syntax: Replace test == with = or -eq as appropriate.Richard W.M. Jones2012-09-152-12/+12
| | | | Found by 'make syntax-check'.
* syntax: xfs: Rewrite split_strdup function to avoid use of strncpy.Richard W.M. Jones2012-09-151-6/+8
| | | | Found by 'make syntax-check'.
* syntax: Use STREQ/STRNEQ in place of strcmp.Richard W.M. Jones2012-09-153-3/+5
| | | | Found by 'make syntax-check'.
* syntax: Remove include <signal.h> in file that doesn't use it.Richard W.M. Jones2012-09-151-1/+0
| | | | Found by 'make syntax-check'.