Automatically copy files out of chroot before it is destroyed?
Jack Bates
nt4wsk at nottheoilrig.com
Thu Aug 29 16:32:37 UTC 2013
I want a script to automatically run some commands in a pbuilder chroot,
and then copy some files out of the chroot before it is destroyed. Can
this be done?
To run the commands in the pbuilder chroot, I put "pbuilder
execute/login" in the script. If in the script I follow this line with
the command to copy files out of the chroot, it fails because the chroot
is already destroyed.
I looked at the various pbuilder hooks, thinking I could trigger one
before the chroot is destroyed, but I think all hooks are executed in
the chroot, so they can't copy files out of the chroot.
How can I automatically copy files out of a pbuilder chroot before it is
destroyed?
Thanks!
More information about the Pbuilder-maint
mailing list