Comment 2 for bug 1178625

Revision history for this message
Tom Hendrikx (whyscream) wrote :

There are more issues with the xendomains init script:
- starting domains complains: '/etc/init.d/xendomains: line 128: domains: bad array subscript' (but domains get started)
- directory /var/run/xen is missing after reboots

First issue is due to the fact that check_config_name() returns an empty string
Second issue is related to pygrub needing the /var/run/xen directory, so this might actually be an issue with /etc/init.d/xen init script in stead.

Attached is a patch that fixes all three issues for me, and a minor addition regarding issuing 'xen destroy' when 'xen shutdown' fails. I wasn't too happy fixing the python dict parsing, so I took a few shortcuts here and there, but the idea should be clear.