[buildd-tools-devel] Bug#607228: no way to run setup command inside a chroot
Sam Hartman
hartmans at debian.org
Wed Dec 15 21:36:46 UTC 2010
package: sbuild
version: 0.60.7-1
severity: normal
When --setup-hook was implemented in terms of --chroot-setup-commands,
the user it is run as changed. Previously it was run as root; now it is
run as the build user.
That's problematic because there no longer seems to be a way a to run
commands as root in the chroot.
My use case is as follows. I'm building a related set of packages that
inter-depend on each other under the control of a buildbot. The build
slave (which runs sbuild) doesn't have the permissions necessary to
install into any apt archive. So, I want to modify the chroot to have
an additional apt source. The location of that source will depend on
which build slave it is, and so I'm running a setup hook to do this.
I'd be happy with any of the following options:
* external commands run as root
* a way to do a build in a session style schroot (schroot -r -c
* session:foo instead of schroot -c foo)
* A way to make packages of my choice available for satisfying build
* depends
More information about the Buildd-tools-devel
mailing list