1
0
mirror of synced 2026-04-13 23:23:41 +00:00

Only run xen-toolstack helper script if both, xm and xl are present

Avoids warning about deprecated helper script.
This commit is contained in:
Axel Beckert
2019-02-07 16:26:06 +01:00
parent c774f81e80
commit f50d1e37a2
3 changed files with 8 additions and 3 deletions

View File

@@ -38,6 +38,8 @@ Other Changes
`deb.debian.org` except those for the `debian-archive`. The latter
now point to `archive.debian.org` directly.
* Many improvements for the release-testing script.
* Only run xen-toolstack helper script if both, xm and xl are
present. Avoids warning about deprecated helper script.
xen-tools 4.7 (released 23 Jan 2017)

2
debian/changelog vendored
View File

@@ -22,6 +22,8 @@ xen-tools (4.8-1) UNRELEASED; urgency=medium
+ Drop pygrub path detection from xm.tmpl, Xen prefers a path-less
bootloader='pygrub'.
+ Many improvements for the release-testing script.
+ Only run xen-toolstack helper script if both, xm and xl are
present. Avoids warning about deprecated helper script.
[ Nico Boehr ]
+ Add support for LVM thin provisioning.

View File

@@ -161,18 +161,19 @@ sub findXenToolstack
{
my $helper = '/usr/lib/xen-common/bin/xen-toolstack';
if (-x $helper) {
my $xm = which('xm');
my $xl = which('xl');
if ($xm and $xl and -x $helper) {
my $toolstack = `$helper`;
chomp($toolstack);
return $toolstack if $toolstack;
}
my $xm = which('xm');
if ($xm and system("$xm list >/dev/null 2>/dev/null") == 0) {
return $xm;
}
my $xl = which('xl');
if ($xl and system("$xl list >/dev/null 2>/dev/null") == 0) {
return $xl;
}