Axel Beckert
cc2a6d4e41
Change all occurrences of $prefix in hooks and roles with $TARGET
...
"target" is also the name used in the debian installer for the
installation target while "prefix" is too ambiguous.
2013-04-18 21:01:19 +02:00
Axel Beckert
5ac0f15c32
Remove all redundant pod-inline occurrences of "=cut"
...
Also care that there are always two blank lines before each "=head1"
(except behind "=head1 NAME").
2013-04-18 20:41:51 +02:00
Axel Beckert
dcb9284636
Remove unused Perl modules Xen::Tools and Xen::Tools::Log
...
Further developement of the (if any) will happen in the git branch
"xen-tools-moose" where they are still available.
Also remove the according (already disabled) tests and test
modifications from the test suite.
Also remove no the more needed build-dependency on Moose as well as
one Makefile line installing the above mentioned Perl modules.
2013-04-18 20:17:33 +02:00
Axel Beckert
07622d8ed0
t/xen-delete-image.t: Check xen-delete-image exit code
...
Also run xen-delete-image verbose and print output.
2013-04-18 16:26:55 +02:00
Axel Beckert
081c0370d4
Properly clean up after t/xt-create-xen-config.t
2013-04-18 16:21:25 +02:00
Axel Beckert
ea209f085b
Refactor some code duplication in xen-delete-image
2013-04-18 16:21:25 +02:00
Axel Beckert
a70b79f63f
Hopefully catch all remaining "ARRAY(0x…).log" issues
2013-04-18 14:45:27 +02:00
Axel Beckert
c482220b99
Rework xci POD: New SYNOPSIS; add EXAMPLES, rename old SYNOPSIS to OPTIONS
2013-04-18 13:52:45 +02:00
Axel Beckert
dcd0bf09f1
Add reference for the three types of MAC relevant for DomUs
2013-04-16 18:03:33 +02:00
Axel Beckert
92a825b87b
Axel's Break-Backwards-Compatibility Wishlist: MAC stuff
2013-04-16 17:57:12 +02:00
Axel Beckert
6871954f6e
Merge branch 'lib-vs-share'
2013-04-11 19:49:53 +02:00
Axel Beckert
e9d8bd0896
xt-install-image: Don't bail out if only cdebootstrap is installed
...
There was a duplicated check on debootstrap being installed and only
one has been expanded when cdebootstrap support was added. So
xen-tools bailed out if debootstrap wasn't installed even if it had
been instructed to use cdebootstrap instead.
This also adds support for cdebootstrap-static.
Additionally xt-install-image dispatcher has been extended to hand
array refs of command paths instead of just single command paths.
Thanks to Elmar Heeb for reporting this issue!
2013-04-11 19:47:05 +02:00
Axel Beckert
9369fd2a03
Update debian/changelog
2013-04-11 19:18:41 +02:00
Axel Beckert
04dd81ec07
Mention http.debian.net as default mirror also in POD
2013-04-11 15:59:42 +02:00
Axel Beckert
d39255dc5e
Reindent options in POD
2013-04-11 15:59:19 +02:00
Axel Beckert
5a48067d9e
Make some x-c-i commandline options negatable
...
Update documentation and tests accordingly.
Also add pygrub = 1 as example to xen-tools.conf, now that the effect
can be reversed via commandline options.
2013-04-11 15:51:31 +02:00
Axel Beckert
6fc51d20be
Update xen-tools.conf comments to be more concise and consistent
...
Thanks Elmar Heeb!
2013-04-11 13:08:31 +02:00
Axel Beckert
16dbe870f2
TODO: test for --size constraints
...
... and its prerequisites
2013-04-11 10:52:45 +02:00
Axel Beckert
cb3227d61b
Don't only allow lowercase "b" for "bytes".
...
Also put some examples in the according error message.
2013-04-11 10:32:20 +02:00
Axel Beckert
a89aa86511
Consistent amount of blank lines in POD
2013-04-11 10:29:56 +02:00
Axel Beckert
555ce383d3
Switch from /usr/lib/xen-tools/ to /usr/share/xen-tools/ to properly adhere FHS
2013-04-05 20:19:22 +02:00
Axel Beckert
b29117be02
Ignore Devel::Cover cache
2013-03-22 16:58:59 +01:00
Axel Beckert
ff7ded28e8
Only the key for %ENV, but not for %CONFIG, needs to be modified
2013-03-14 00:10:18 +01:00
Axel Beckert
f0691c9a38
Merge branch 'master' of gitorious.org:xen-tools/xen-tools
...
Conflicts:
debian/changelog
2013-03-14 00:01:05 +01:00
Axel Beckert
76d9d59510
Fix export of environment variables (dash vs underscore)
...
Previously they could contain dashes and then were only accessible
from within Perl, but not from within Bash.
From now on potential dashes in environment variable names are
converted to underscores ("_") before being exported. May affect some
hook or role scripts.
2013-03-13 23:29:52 +01:00
Axel Beckert
5342b04ac7
Some more TODOs (mostly refactoring + code cleanup)
2013-03-13 23:17:09 +01:00
Axel Beckert
01e525106b
Use Test::NoTabs in t/no-tabs.t
2013-03-05 23:07:04 +01:00
Axel Beckert
5146706536
Document 4.3.1 in NEWS
2013-01-26 01:18:28 +01:00
Axel Beckert
dfa32a97ca
Also switch xt-guess-suite-and-mirror's fallback to http.debian.net
2013-01-25 17:34:39 +01:00
Axel Beckert
c409759745
Rename NEWS to NEWS.markdown
2013-01-25 17:32:20 +01:00
Axel Beckert
149b92af77
Document 4.3 release date in NEWS
2013-01-25 17:30:17 +01:00
Axel Beckert
a4b3c9c568
Also use http.debian.net as default mirror for the debian-archive
2013-01-25 17:09:54 +01:00
Axel Beckert
dbb9124666
Use http.debian.net as default Debian mirror if no mirror is given
...
... i.e. if even xt-guess-suite-and-mirror is not used.
2013-01-25 17:09:19 +01:00
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
d3baf1f8ba
KNOWN BUGS: -1 +1
2013-01-25 13:03:23 +01:00
Axel Beckert
d7f219f160
Create /boot/grub/default if non-existent
...
Seems to be needed at least for Squeeze.
2013-01-24 23:14:34 +01:00
Axel Beckert
bc054b1b02
chomp the output of dpkg --print-architecture
2013-01-24 23:14:34 +01:00
Axel Beckert
f18285943c
Call update-grub at the end of 82-install-grub-legacy to update menu.lst
2013-01-24 23:14:34 +01:00
Axel Beckert
780839988d
Remove trailing blank line
2013-01-24 23:14:34 +01:00
Axel Beckert
025e20a1f1
Better check for grub-legacy availability which ignores virtual packages
2013-01-24 23:14:34 +01:00
Axel Beckert
9330b79d51
hooks/common.sh: Fix syntax error in installCentOS4Package wrapper.
2013-01-24 23:14:10 +01:00
Axel Beckert
979b6fb166
hooks/common.sh: installDebianPackage no more installs recommends
2013-01-24 23:07:56 +01:00
Axel Beckert
57c7d13c48
Factor out legacy grub menu.lst generation
2013-01-24 23:06:53 +01:00
Axel Beckert
1de424a69d
Fix filesystem tools installation in 91-install-fs-tools
...
Was broken since 4.3rc1.
Merged 91-install-fs-tools back into 90-make-fstab. Added support for
RPM-based distributions, too, so it's more generic now.
2013-01-23 18:02:44 +01:00
Axel Beckert
505950dae0
isAPT: Also check for dpkg and rename it to isDeb
...
That way we should not try to use Debian/Ubuntu package names if
apt4rpm is available.
2013-01-23 17:47:13 +01:00
Axel Beckert
0c8b5d25c4
Factor out functions to test if we should use yum or apt
2013-01-23 17:40:00 +01:00
Axel Beckert
bce580658e
hooks/common.sh: Rename installCentOS4Package to installRPMPackage
...
Add installCentOS4Package wrapper for backward compatibility.
2013-01-23 17:00:09 +01:00
Axel Beckert
b451260f0d
TODO/KNOWN_BUGS: Add some hook issues noticed recently
...
Found during debugging error messages and warnings in log files.
2013-01-23 16:08:01 +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