[Buildd-tools-devel] Bug#500746: feature request: use pre-existing schroot or run early script hook
Kees Cook
kees at outflux.net
Wed Oct 1 01:17:41 UTC 2008
Package: sbuild
Version: 0.57.5-1
Severity: normal
Tags: patch
Hello! I'd like to have the ability to run commands within the chroot
before building. In a perfect world, I could specify a pre-existing
chroot snapshot (one already started with schroot -b -c ....), and then
I could open the chroot, run commands, run sbuild, and then destroy the
chroot myself. I imagine this looking like so:
$ CMDS=$(mktemp -t cmds-XXXXXX)
$ echo "stuff to run...." > "$CMDS"
$ CHROOT=$(schroot -b -c unstable-i386)
$ schroot -u root -r -c "$CHROOT" "$CMDS"
$ rm -f "$CMDS"
$ sbuild -d unstable -c "$CHROOT" -A somepkg.dsc
$ schroot -e -c "$CHROOT"
However, sbuild doesn't know how to look up this schroot nor to skip
initialization, etc.
Without this, I thought perhaps I could just run a script before starting
the build. However, the sbuild options aren't passed into the environment
anywhere, so in this example hack^Wpatch, I'm just passing the arguments
I happened to need for my script.
-Kees
--
Kees Cook @outflux.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-cmd-hack.patch
Type: text/x-diff
Size: 1565 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20080930/a1c4dcfb/attachment.patch
More information about the Buildd-tools-devel
mailing list