Mailinglist Archive: opensuse-bugs (4736 mails)

< Previous Next >
[Bug 605182] New: /etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 May 2010 14:11:17 +0000
  • Message-id: <bug-605182-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=605182

http://bugzilla.novell.com/show_bug.cgi?id=605182#c0


Summary: /etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=:
unary operator expected
Classification: openSUSE
Product: openSUSE 11.3
Version: Factory
Platform: x86-64
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Xen
AssignedTo: jdouglas@xxxxxxxxxx
ReportedBy: koenig@xxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


trying to use an iscsi target as xen domU disk (with some setup problems left)
I got the following errors in /var/log/xen/xen-hotplug.log:

/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
iscsiadm: no records found!
/etc/xen/scripts/xen-hotplug-cleanup: line 24: [: !=: unary operator expected
iscsiadm: no records found!


and here is my "fix" :

--- /etc/xen/scripts/xen-hotplug-cleanup~ 2010-04-10 03:34:37.000000000
+0200
+++ /etc/xen/scripts/xen-hotplug-cleanup 2010-05-12 14:59:00.000000000
+0200
@@ -21,7 +21,7 @@

# if the vm path does not exist and the device class is 'vbd' then we may
have
# a tap2 device
- if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
+ if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \
&& [ "${path_array[1]}" = "vbd" ]; then
vm_dev="$vm/device/tap2/${path_array[3]}"
fi

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups