1
0
mirror of synced 2026-01-31 21:42:04 +00:00
Commit Graph

545 Commits

Author SHA1 Message Date
Axel Beckert
f2d30eaa63 xen-delete-image no more passes $CONFIG{hostname} as array to logprint_with_config
The deletion of failed attempts was logged to files named like
ARRAY(0xa9dd98).log because the hostname was passed twice, i.e. as
arrayref (which didn't hurt otherwise).
2013-01-25 15:22:42 +01:00
Axel Beckert
0709308c1f Save exit code $? at the beginning of the END block
Otherwise cleaning up by doing some system() calls garbles $? with
unwanted values.
2013-01-25 13:19:36 +01:00
Axel Beckert
bc054b1b02 chomp the output of dpkg --print-architecture 2013-01-24 23:14:34 +01:00
Axel Beckert
af6e1435aa Mention in error message why xen-create-image thinks that an installation failed 2013-01-23 13:14:35 +01:00
Axel Beckert
4dbb6fe189 Bump copyright years in xen-delete-image and xen-list-images 2013-01-18 02:25:06 +01:00
Axel Beckert
53c013f1cc xen-delete-image now also understand --extension 2013-01-18 02:13:19 +01:00
Axel Beckert
6a59d0fd9b Properly ident --extension docs in xen-list-images' POD 2013-01-18 02:12:22 +01:00
Axel Beckert
73dabead05 unMountImage may fail if $CONFIG{FAIL} is already set 2013-01-17 22:59:34 +01:00
Axel Beckert
ce1624b83e Remove redundant and broken second setting of mirror by distribution 2013-01-17 22:59:01 +01:00
Axel Beckert
97553c50fb Handle Sarge amd64 case properly
Uses File::Which, (build-) dependency on libfile-which-perl added
2013-01-17 22:48:15 +01:00
Axel Beckert
dc5b36f8ef xen-list-images now also outputs the name of the config file 2013-01-17 22:15:21 +01:00
Axel Beckert
00623e2327 Add --extension option to xen-list-images 2013-01-17 22:13:34 +01:00
Axel Beckert
c6caa0a0ad Fix "--extension=" with empty parameter 2013-01-17 21:57:50 +01:00
Axel Beckert
13dbf65793 Mention that --keep does not prevent unmounting 2013-01-17 21:19:55 +01:00
Axel Beckert
d6144d45ea It's said that just "END" is better style than "sub END". 2013-01-17 21:16:22 +01:00
Axel Beckert
b682ad1817 Normalize redundant FAIL test 2013-01-17 21:16:22 +01:00
Axel Beckert
61df2a6c51 Trap SIGINT to unmount to temporary mount point
This makes END being called again after Ctrl-C.
2013-01-17 21:16:22 +01:00
Axel Beckert
c1e7cb717a Add optional argument to unMountImage and hence runCommand to allow failure 2013-01-17 21:16:22 +01:00
Axel Beckert
a223eedf0b Remove redundant unMountImage call 2013-01-17 20:55:42 +01:00
Axel Beckert
02240309b3 Bump Copyright years at multiple place 2013-01-17 17:09:37 +01:00
Axel Beckert
448a176e58 Bump version to 4.4~dev 2012-11-28 01:28:48 +01:00
Axel Beckert
00b316a2c4 Call findXenToolstack() also in xen-{delete,resize,update}-image 2012-11-28 01:09:24 +01:00
Axel Beckert
1efbc72676 Add --no-xen-ok option also to xen-create-image 2012-11-28 01:09:23 +01:00
Axel Beckert
8bd56bd67e Bugfix: Can't pass @_ to templated functions which expect scalars 2012-11-28 00:52:20 +01:00
Axel Beckert
00bb137012 New xen-delete-image option --no-xen-ok for disabling xenRunning tests 2012-11-27 23:53:03 +01:00
Axel Beckert
4c3e4abff7 Move findBinary to Xen::Tools::Common 2012-11-27 23:43:06 +01:00
Axel Beckert
ffa0ac5681 Fix some logprint() calls with multiple arguments 2012-11-27 23:37:46 +01:00
Axel Beckert
b5499e48b4 Define fail() and logprint() helpers as early as necessary 2012-11-27 23:37:09 +01:00
Axel Beckert
2d79f13714 All runCommand() calls should pass %CONFIG 2012-11-27 23:31:21 +01:00
Axel Beckert
de9d3f2814 Replace one more die by fail 2012-11-27 23:30:07 +01:00
Axel Beckert
9da26382f4 Fix missing trailing semicolon 2012-11-27 23:30:07 +01:00
Axel Beckert
85f7d1b9fe Consequently use $CONFIG{FAIL} instead of $FAIL 2012-11-27 23:30:07 +01:00
Axel Beckert
d2f935b823 Make fail(), logprint() and logonly() get \%CONFIG, too 2012-11-27 23:29:59 +01:00
Axel Beckert
ea23c79431 Support Xen xl toolstack elsewhere than xen-create-image 2012-11-27 22:49:56 +01:00
Axel Beckert
76fbd23423 Move findXenToolstack() to Xen::Tools::Common 2012-11-27 22:48:37 +01:00
Axel Beckert
494ec02a7c Merge branch 'master' into code-deduplication
Conflicts:
	bin/xen-create-image
	bin/xen-create-nfs
	bin/xt-create-xen-config
2012-11-27 22:40:08 +01:00
Axel Beckert
8f1f298551 New option to dump contents of %CONFIG
Probably only needed for debugging.
2012-11-27 22:28:38 +01:00
Axel Beckert
e57e7f16eb Preliminary support for the Xen xl toolstack
(xen-create-image supported only so far)
2012-11-27 22:26:30 +01:00
Axel Beckert
b54d5b84f9 Refactoring: Replace $options with $option as it contains just one option 2012-11-27 18:26:47 +01:00
Axel Beckert
b99ca853e1 Replace system() by runCommand() 2012-11-27 16:01:27 +01:00
Axel Beckert
e7b710d43a No more refer to forking in the comments 2012-11-27 13:24:33 +01:00
Axel Beckert
6f2814f414 Merge branch 'master' into code-deduplication
Conflicts:
	bin/xen-create-image
2012-11-27 13:22:34 +01:00
Axel Beckert
026e47ac83 Preliminary support for Debian Jessie and Ubuntu Raring
Also set the default mirror for Ubuntu Natty to
old-releases.ubuntu.com as it's end of life and will move there soon.
2012-11-15 16:55:10 +01:00
Axel Beckert
a87b0d1b2c Remove CVS revisions from --version output 2012-11-14 00:02:54 +01:00
Axel Beckert
442021849d Also recognize M and G as size unit for --memory (Closes: #691320)
Document all recognized units.
2012-11-13 22:55:53 +01:00
Axel Beckert
446e157b80 Move code for --boot feature to END block.
Fixes missing SSH fingerprint display if --boot was used. (Closes: #679183)

Remove a redundant unsetting of $MOUNT_POINT. Guard a potentially
second call to the not idempotent unMountImage().
2012-11-13 22:41:47 +01:00
Axel Beckert
1dbb1f191f Use local parameter instead of global variable in unMountImage 2012-11-13 22:29:46 +01:00
Axel Beckert
324fff9f7e Execute END block not on --version/--help/--manual (Closes: #684346) 2012-11-13 19:47:36 +01:00
Axel Beckert
b233cb614d Bump version to 4.3.1+dev 2012-11-13 18:07:42 +01:00
Axel Beckert
7860d5ac4e Release 4.3.1 RC1 unmodified as 4.3.1 2012-06-30 16:45:59 +02:00