[buildd-tools-devel] Bug#802678: Bug#802678: please document that --chroot-setup-command is executed inside the chroot

Johannes Schauer josch at debian.org
Fri Oct 23 04:46:26 UTC 2015


Hi,

Quoting Marc Haber (2015-10-22 16:31:56)
> I just found out that --chroot-setup-command is executed inside a
> chroot. It is therefore unsuitable to copy files into the chroot from
> the outside. Please document this. I always had the impression that
> schroot would execute those commands before chrooting.

is this table in the sbuild man page which shows in which order hooks are
executed and whether they are executed inside or outside the chroot not
sufficient:

       Initialise chroot session --pre-build-commands       root  outside
       chroot Setup the chroot and variables --chroot-setup-commands    root
       inside chroot Update and upgrade packages Install Dependencies
       --build-deps-failed-commands  root  inside chroot
       --starting-build-commands  user  inside chroot Do actual build
       (dpkg-buildpackage) --build-failed-commands  user  inside chroot
       --finished-build-commands  user  inside chroot Run lintian (if
       configured) Cleanup build files and dependencies
       --chroot-cleanup-commands  root  inside chroot Close schroot session Run
       piuparts (if configured) --post-build-commands      root  outside chroot

Should the information presented in a different way?

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151023/60652c4d/attachment-0001.sig>


More information about the Buildd-tools-devel mailing list