Fix test: =: unary operator expected error with Xen on Ubuntu 8.04

Bug fix for =: unary operator expected with Xen on Ubuntu 8.04 LTS server

The solution

When I was booting and rebooting I was getting this error message :

test: =: unary operator expected

The fix is very simple (do as root) :

#vi /etc/init.d/xendomains

Then find and replace the line :

rest=`echo "$1" | cut cut -d\  -f2-

with

rest=`echo "$1" | cut -d\  -f2-

Comments

This bug fixed many things...

Now when I reboot dom0, domU are saved and when the server boot they are restored... Wasnt like that before ;)