From: Ian Jackson Subject: Re: [xen-unstable bisection] complete test-i386-xcpkern-i386-pv Date: Fri, 3 Jun 2011 11:49:48 +0100 Message-ID: <19944.48204.474394.527965@mariner.uk.xensource.com> References: <1307093013.775.328.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1307093013.775.328.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "W. Michael Petullo" , "xen-devel@lists.xensource.com" , "keir@xen.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [xen-unstable bisection] complete test-i386-xcpkern-i386-pv"): > On Fri, 2011-06-03 at 09:58 +0100, Ian Jackson wrote: ... > > tools/hotplug: support vif-post.d hook arrangements > > > > New feature: you can drop hook scripts into > > /etc/xen/scripts/vif-post.d/*.hook > > > > Acked-by: Ian Campbell > > Committed-by: Ian Jackson I had a suspicion it might be that ... > That message comes from the "trap sigerr ERR". The hotplug script has > "set -e" so some command has failed. It's a shame that we don't get the stderr output under xend. Still, let's not try to fix that ... > My guess is that when there are no hooks at all this: > for f in /etc/xen/scripts/${1}-${2}.d/*.hook; do > [ -x "$f" ] && . "$f" > done > > expands into a literal > [ -x ".....*.hook" ] && . "..... *.hook" > > and since ....*.hook doesn't exist the overall result of this expression > is failure. The same would happen for any *.hook which wasn't > executable. No. mariner:~> bash -ec 'trap "echo e" ERR; false && echo a; echo b' b mariner:~> dash -ec 'for f in /etc/xen/scripts/${1}-${2}.d/*.hook; do [ -x "$f" ] && . "$f"; done; echo ok' ok mariner:~> ls /etc/xen/scripts /bin/ls: cannot access /etc/xen/scripts: No such file or directory mariner:~> set -e and the ERR trap don't apply to && and || lists at all. This is arguably a specification bug. > Perhaps the following helps? I think we need more diagnosis. I'll investigate. Ian.