Hi,

> > > I'm changing my question: is it possible to have hooks executed after
> > > invoking chroot _both_ for login _and_ execute pbuilder commands?
> > What kind of use do you have in mind?
> > It's trivial to add, but I would like to know that there 
> > are legitimate uses for it.
> 
> I'm writing a script which uses pbuilder to build a sequence of debian
> packages from source installing them as soon as they've been built. A
> need of mine, which I think is quite common for people using "pbuilder
> execute/login" is to copy stuff inside the chroot before executing the
> script (or the sell) and to copy stuff outside the chroot after script
> execution (of course before removal of the build place).
> 
> "F" hooks could be used for copying stuff in, but hooks for copying
> stuff out are not available. "B" hooks seem to be the right ones but are
> simply not invoked.

Most of that need is satisfied through use of 
--bindmounts option.

By the way, the hook scripts are executed inside the 
chroot, I don't think it's very much useful to 
try to copy outside of chroot when you are only looking
at inside the chroot from hook scripts.



regards,
        junichi
-- 
Junichi Uekawa, Debian Developer   http://www.netfort.gr.jp/~dancer/
183A 70FC 4732 1B87 57A5  CE82 D837 7D4E E81E 55C1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to