[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [xen-unstable bisection] complete test-i386-xcpkern-i386-pv

Ian Campbell writes ("Re: [Xen-devel] [xen-unstable bisection] complete 
> 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 <ian.campbell@xxxxxxxxxx>
> >       Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

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.


mariner:~> bash -ec 'trap "echo e" ERR; false && echo a; echo b'
mariner:~> dash -ec 'for f in /etc/xen/scripts/${1}-${2}.d/*.hook; do [ -x "$f" 
] && . "$f"; done; echo ok'
mariner:~> ls /etc/xen/scripts
/bin/ls: cannot access /etc/xen/scripts: No such file or directory

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.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.