Hi there,
i've noticed 2 separate bugs using xen-4.4.1-2.x86_64 with SysVinit.
1st one is in xenstored init script - /local/domain/0/domid" is not set
when henstored is started from initscript, however it is set when
started from systemd (fixed in 25eb178).
Attached xenstored.patch fixes this behaviour.
2nd one is in xendomains, when using xl toolstack - it's described here:
http://comments.gmane.org/gmane.linux.debian.devel.bugs.general/1201592
It's probabyly because check_config_name() returns empty string.
Debian sid uses slightly modified regexp in check_config_name, using
that regexp works for me, however i'm not familiar with other
toolstacks, so not sure if it's ok with other toolstacks.
Attached xendomains.patch contains Debian regexp.
--
Bartek
--- /tmp/xenstored.init 2014-12-11 00:49:46.573333333 +0100
+++ /etc/rc.d/init.d/xenstored 2014-12-08 17:08:30.000000000 +0100
@@ -51,6 +51,7 @@
show "Setting domain 0 name"
busy
xenstore-write "/local/domain/0/name" "Domain-0"
+ xenstore-write "/local/domain/0/domid" "0"
ok
touch /var/lock/subsys/xenstored
}
--- /tmp/xendomains.init 2014-12-11 00:49:05.216666667 +0100
+++ /etc/rc.d/init.d/xendomains 2014-12-11 00:42:01.069999999 +0100
@@ -31,7 +31,7 @@
check_config_name()
{
- /usr/lib/xen/bin/xen-toolstack create --quiet --dryrun --defconfig "$1" | sed -n 's/^.*\("name":"\([^"]*\)",.*\)\|(name \(.*\))$/\2\3/p'
+ /usr/lib/xen/bin/xen-toolstack create --quiet --dryrun --defconfig "$1" | sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p'
}
check_running()
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en