Bug 148628 - /etc/init.d/xendomains fails with domains containing numbers
|
Bug#:
148628
|
Product: Gentoo Linux
|
Version: 2006.1
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: minor
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: aross@gentoo.org
|
Reported By: robert.spam.me.senseless@gmail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: /etc/init.d/xendomains fails with domains containing numbers
|
|
Keywords: Bug
|
|
Status Whiteboard: scheduled for app-emulation/xen-tools-3.0.2-r4
|
|
Opened: 2006-09-22 04:28 0000
|
My /etc/xen/auto dir. contains the following line:
name = "debian31"
When I start /etc/init.d/xendomains it gives the domain the title 'debian31"' -
this should be 'debian31' without the ".
# /etc/init.d/xendomains start
* Starting Xen domains from /etc/xen/auto
* Creating screen session to hold domain consoles ... [ ok ]
* Starting domain debian31" ... [ ok ]
When I shut this down, it doesn't recognise this domain:
# /etc/init.d/xendomains stop
* Shutting down Xen domains from /etc/xen/auto
* Not stopping domain debian31" - not running
* Closing screen session xen ...
This seems to screw things up when I reboot - the domain won't start.
The solution is: don't use numbers in the xen domain name (maybe the init
script should point this out if this is important) OR to replace ":alpha:" with
":alnum:" in line 14 in the /etc/init.d/xendomains script thus
local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alpha:]_]+)\"?\W*;?/\1/p'
"${1}" | tail -n 1)
changes to
local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alnum:]_]+)\"?\W*;?/\1/p'
"${1}" | tail -n 1)
Thanks, your fix will be included in -r4
Maybe a few other character should be allowed. The demo domains have "-" and
"." in them. I think that these should work run without errors.
Fixed in app-emulation/xen-tools-3.0.2-r4, thanks.