1
0
mirror of synced 2026-01-20 17:38:02 +00:00

22 Commits

Author SHA1 Message Date
Jean-Michel Nirgal Vourgère
0ccf513cf3 Allow # within configuration file comments
Line 20 of /etc/xen-tools/xen-tools.conf says: "Anything following a
'#' character is ignored as a comment."

This patch allows two or more hash characters in one row of the
configuration files.

Everything after the *first* hash is now ignored.

Closes: #783060
2015-04-21 14:39:54 +02:00
Axel Beckert
83a6d09e3d Flush output after each line in runCommand() 2014-10-26 01:20:44 +02:00
Axel Beckert
fcebb14002 Drop all xend related sanity checks
They cause more havoc nowadays than they help.

Thanks Ian Campbell!

Closes: #732456
2014-03-28 22:24:21 +01:00
Axel Beckert
c62b053a7b Also declare POD encoding in Xen::Tools::Common
Recode Xen::Tools::Common to UTF-8

Fixes FTBFS with Perl 5.18. Closes #720519 a second time.
2013-09-24 22:02:28 +02:00
Axel Beckert
9c47e5da4f Use File::Which instead of findBinary or which 2013-07-11 00:39:05 +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
c1e7cb717a Add optional argument to unMountImage and hence runCommand to allow failure 2013-01-17 21:16:22 +01:00
Axel Beckert
0a7544c57a Replace some verbose print()s by logprint_with_config() 2012-11-28 01:10:58 +01:00
Axel Beckert
4c3e4abff7 Move findBinary to Xen::Tools::Common 2012-11-27 23:43:06 +01:00
Axel Beckert
9a9fa39f69 Make t/pod-coverage.t pass for Xen::Tools::Common 2012-11-27 23:38:26 +01:00
Axel Beckert
d2f935b823 Make fail(), logprint() and logonly() get \%CONFIG, too 2012-11-27 23:29:59 +01:00
Axel Beckert
68d548ef60 Parameter templates for fail(), logprint() and logonly() 2012-11-27 23:04:45 +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
b1476676fe Xen::Tools::Common should return true 2012-05-31 01:21:35 +02:00
Axel Beckert
34ccb63f64 Move functions fail, logonly and logprint to Xen::Tools::Common
They're used in there
2012-05-31 01:10:14 +02:00
Axel Beckert
65d76b6aa4 Deduplicate setupAdminUsers 2011-11-16 01:44:11 +01:00
Axel Beckert
0f71f545df deduplicate runCommand()
Version taken from xen-create-image. Needed a small hack WRT $FAIL.
2011-11-16 01:34:23 +01:00
Axel Beckert
2de01d8cbc deduplicate xenRunning() 2011-11-16 01:10:51 +01:00
Axel Beckert
1d45cd33ab Use function prototypes in Xen::Tools::Common 2011-11-16 01:02:01 +01:00
Axel Beckert
24cd27b737 Create new Perl module Xen::Tools::Common, start with xen-create-nfs' readConfigurationFile function 2011-11-16 00:19:20 +01:00