[Pkg-xen-devel] Bug#640381: scripting errors in xen-hotplug-cleanup

Witold Baryluk baryluk at smp.if.uj.edu.pl
Sun Sep 4 17:36:53 UTC 2011


Package: xen-utils-common
Version: 4.0.0-1


Hi,

I discovered that one of the scripts does something wrong
on my squeeze machine.

/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
...
...


line 24 of /etc/xen/scripts/xen-hotplug-cleanup if

  if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
       && [ "${path_array[1]}" = "vbd" ]; then

Maybe result is empty or outputs multiple results?

Xen releated packages

root at noisy:/var/log/xen# dpkg -l | grep -i xen
ii  libc6-xen                               2.11.2-10                    Embedded GNU C Library: Shared libraries [Xen version]
ii  libxenstore3.0                          4.0.1-2                      Xenstore communications library for Xen
ii  linux-image-2.6-xen-686                 2.6.32+29                    Linux 2.6 for modern PCs (meta-package), Xen dom0 support
ii  linux-image-2.6.18-6-xen-686            2.6.18.dfsg.1-23etch1        Linux 2.6.18 image on i686
ii  linux-image-2.6.18-6-xen-vserver-686    2.6.18.dfsg.1-23etch1        Linux 2.6.18 image on i686
ii  linux-image-2.6.26-1-xen-686            2.6.26-13lenny2              Linux 2.6.26 image on i686, oldstyle Xen support
ii  linux-image-2.6.26-2-xen-686            2.6.26-26lenny1              Linux 2.6.26 image on i686, oldstyle Xen support
ii  linux-image-2.6.32-5-xen-686            2.6.32-35                    Linux 2.6.32 for modern PCs, Xen dom0 support
ii  linux-image-xen-686                     2.6.32+29                    Linux for modern PCs (meta-package), Xen dom0 support
ii  linux-modules-2.6-xen-686               2.6.26+17+lenny1             Linux 2.6 modules on i686
ii  linux-modules-2.6.18-6-xen-686          2.6.18.dfsg.1-23etch1        Linux 2.6.18 modules on i686
ii  linux-modules-2.6.18-6-xen-vserver-686  2.6.18.dfsg.1-23etch1        Linux 2.6.18 modules on i686
ii  linux-modules-2.6.26-1-xen-686          2.6.26-13lenny2              Linux 2.6.26 modules on i686
ii  linux-modules-2.6.26-2-xen-686          2.6.26-26lenny1              Linux 2.6.26 modules on i686
ii  xen-hypervisor-4.0-i386                 4.0.1-2                      The Xen Hypervisor on i386
ii  xen-tools                               4.2-1                        Tools to manage Xen virtual servers
ii  xen-utils-4.0                           4.0.1-2                      XEN administrative tools
ii  xen-utils-common                        4.0.0-1                      XEN administrative tools - common files
ii  xenstore-utils                          4.0.1-2                      Xenstore utilities for Xen



Regards,
Witek

-- 
Witold Baryluk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20110904/4b323092/attachment.pgp>


More information about the Pkg-xen-devel mailing list