summaryrefslogtreecommitdiffstats
path: root/sysprep
Commit message (Collapse)AuthorAgeFilesLines
* build: Return 77 from skipped tests.Richard W.M. Jones2012-07-191-2/+2
|
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-07-161-1/+1
| | | | | This will allow us to easily change the location of this script in future.
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-141-1/+1
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* run: Set MALLOC_PERTURB_ to a random value.Richard W.M. Jones2012-06-281-3/+0
| | | | | | | | | | | | | | | | | MALLOC_PERTURB_ is a glibc feature which causes malloc to wipe memory before and after it is used, allowing both use-after-free and uninitialized reads to be detected with relatively little performance penalty: http://udrepper.livejournal.com/11429.html?nojs=1 Modify the ./run script so that it always sets this. We were already using MALLOC_PERTURB_ in most tests. Since ./run is now setting this, we can remove it from individual Makefiles. Most TESTS_ENVIRONMENT will now simply look like this: TESTS_ENVIRONMENT = $(top_builddir)/run --test
* tests: Add ./run --test option.Richard W.M. Jones2012-06-261-1/+1
| | | | | | | This option, when added via TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test allows us to run the tests and only print the full output (including debugging etc) when the test fails.
* sysprep: Don't check for /dev/fuse before running the test.Richard W.M. Jones2012-06-251-5/+0
| | | | | The program doesn't actually require FUSE when used without any --script options.
* tests: Add SKIP_TEST_* variables to allow these tests to be skipped.Richard W.M. Jones2012-06-221-0/+5
| | | | | By setting these variables, we can skip tests that fail on RHEL 5.
* build: Define abs_builddir if not defined already.Richard W.M. Jones2012-06-181-0/+3
| | | | | | This is missing on RHEL 5. This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6.
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-181-0/+6
| | | | | | | | | | | | | | | | | | | | | RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
* ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.Richard W.M. Jones2012-06-181-1/+1
|
* sysprep: remove the data and log files of puppetWanlong Gao2012-05-252-0/+54
| | | | | | Remove the data(keys) and log files of puppet. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: Credit Wanlong Gao, Fujitsu under 'AUTHORS' section.Richard W.M. Jones2012-05-181-1/+5
|
* sysprep: remove kerberos data in the guestWanlong Gao2012-05-182-0/+54
| | | | | | Remove the generated kerberos data in the guest. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove ca certificates in the guestWanlong Gao2012-05-182-0/+61
| | | | | | Remove the ca certificates. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: Add missing 'utils.mli' to SOURCES.Richard W.M. Jones2012-05-141-1/+2
| | | | Consequently this file was also missing from the tarball.
* sysprep: remove blkid tab in the guestWanlong Gao2012-05-102-0/+57
| | | | | | Remove blkid tab cache in the guest. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove pam dataWanlong Gao2012-05-082-0/+54
| | | | | | Remove the generated pam data in the guest. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Add gettext support for OCaml tools (virt-resize, virt-sparsify, virt-sysprep).Richard W.M. Jones2012-05-0126-105/+141
| | | | | | | | Note that this support is optional: To enable it, install the ocaml-gettext library from http://forge.ocamlcore.org/projects/ocaml-gettext . If this library is not installed, then configure detects this and inserts dummy gettext functions that do nothing.
* sysprep: Remove the data of dovecotWanlong Gao2012-04-272-0/+45
| | | | | | Remove the data of dovecot. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the logfiles configured by logrotateWanlong Gao2012-04-271-0/+21
| | | | | | | | Remove the logfiles configured by /etc/logrotate.d/*. Omit the logfile of "samba" and "sssd" which we removed them separately . Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: fix typo of the objectWanlong Gao2012-04-251-3/+3
| | | | | | | Fix the typo of the OBJECT. I'm sorry for the copy and paste typo. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the db and log of sambaWanlong Gao2012-04-252-0/+54
| | | | | | Remove the db and log of samba. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the db and log of sssdWanlong Gao2012-04-252-0/+52
| | | | | | Remove the db and log of sssd. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the cache of package managerWanlong Gao2012-04-242-0/+47
| | | | | | | | | Remove the cache of package manager like yum and apt. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Small code cleanup.
* sysprep: flag the system for reconfigurationWanlong Gao2012-04-232-0/+44
| | | | | | | | | | Flag the system for reconfiguration by touching /.unconfigured . Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Updated so this is disabled by default, since it requires user intervention at next boot.
* sysprep: remove user accountsWanlong Gao2012-04-232-0/+72
| | | | | | | | | | | | Remove user accounts from /etc/passwd, /etc/group, /etc/shadow, and the home directory of the user, except the root user. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Updated to use Augeas to delete accounts. - Disable this by default, since it is very invasive.
* sysprep: Don't enable every option by default.Richard W.M. Jones2012-04-2120-64/+148
| | | | | | | | | | 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.
* sysprep: Make the tests run quietly.Richard W.M. Jones2012-04-132-3/+3
|
* sysprep: bash_history: fix copyrightWanlong Gao2012-04-131-1/+1
| | | | Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove .ssh directory in users' directoryWanlong Gao2012-04-132-0/+48
| | | | | | | Remove the .ssh directory of user "root" and any other users who have a .ssh directory in their home directory. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the bash history of usersWanlong Gao2012-04-122-0/+48
| | | | | | | Remove the bash history of users in home directory, and history of root. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: Sort and align all arguments (thanks Wanlong Gao).Richard W.M. Jones2012-04-111-4/+8
|
* sysprep: Make a common Utils.compare_command_line_args function.Richard W.M. Jones2012-04-113-4/+10
| | | | | This isn't quite code motion, since the new function also ignores case (which previously we didn't ignore).
* sysprep: Move skip_dashes function into Utils module.Richard W.M. Jones2012-04-113-12/+21
| | | | | This is mostly code motion, but I also changed the function to use String.unsafe_get and raise Invalid_argument on failure.
* sysprep: Add utils.mli (interface) file.Richard W.M. Jones2012-04-111-0/+39
|
* sysprep: Print some logging by default.Richard W.M. Jones2012-04-114-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | It can be disabled using the --quiet option. The logging looks like: Examining the guest ... Performing "cron-spool" ... Performing "dhcp-client-state" ... Performing "dhcp-server-state" ... Performing "hostname" ... Performing "logfiles" ... Performing "mail-spool" ... Performing "net-hwaddr" ... Performing "random-seed" ... Performing "rhn-systemid" ... Performing "script" ... Performing "smolt-uuid" ... Performing "ssh-hostkeys" ... Performing "udev-persistent-net" ... Performing "utmp" ... Performing "yum-uuid" ... Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: Allow hwaddr to be removed on other Red Hat derivatives (RHBZ#811117).Qin Guan2012-04-101-1/+1
|
* sysprep: Allow hostname to be set on other Red Hat derivatives (RHBZ#811112).Qin Guan2012-04-101-1/+1
|
* sysprep: Add GDM and session preferences to logfiles.Richard W.M. Jones2012-04-031-0/+5
|
* sysprep: Remove installation logfiles in /root.Richard W.M. Jones2012-04-031-1/+7
|
* sysprep: Include logfile glob list in the man page.Richard W.M. Jones2012-04-031-18/+24
|
* sysprep: Add a test of the --script option.Richard W.M. Jones2012-04-015-1/+116
|
* sysprep: Simplify and tidy up the test.Richard W.M. Jones2012-04-011-8/+7
|
* sysprep: script: Documentation fix.Richard W.M. Jones2012-04-011-1/+1
|
* sysprep: script: Miscellaneous fixes and cleanups to shell script.Richard W.M. Jones2012-04-011-3/+11
|
* sysprep: script: Wait for child process to exit.Richard W.M. Jones2012-04-011-3/+17
|
* sysprep: script: Remove useless check that script is executable.Richard W.M. Jones2012-04-011-9/+5
| | | | | | This check will fail if the script is on the path. Also document that script must be on the path or else the full path to the script must be given.
* sysprep: Add some debug code when performing operations.Richard W.M. Jones2012-04-011-1/+6
|
* sysprep: Add more files to CLEANFILES.Richard W.M. Jones2012-04-011-1/+4
|