
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@novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de 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.