Hi, 在 2023-07-13星期四的 15:50 +0200,PICCA Frederic-Emmanuel写道: > Hello, I try to write a really simple script in perl which allows me to > rebuild a bunch of packages using a file with a really simple syntax > > backport hkl > git haskell-hkl https://repo.or.cz/hkl.git contrib/haskell > ... > > I setup a chroot with the sbuild-debian-developer-setup -> ok > > Now I can build packages with the sbuild command from a checkout package -> ok > > Now I need to keep the generated packages to build the next one. > So I want to setup a local repository own by the user > `/home/<user>/repository` > I use apt-ftparchive in order to maintain the Packages, Sources and Release > file between each package build. -> ok > > My problem is: how can I bind the local repository into the chroot via sbuild. > > I understand that I can put this configuration in the > /etc/schroot/sbuild/fstab configuration. > > /home/user/repository /tmp/repository none rw,bind 0 0 > > but the user repository path is a moving target. > > So my question is > > how can I do this mount from the sbuild command line
Putting the set up of local repository aside, I believe that sbuild provides useful cmdline parameters like --extra-package=/path/to/a/dir , --extra-repository=spec and --add-depends=dependency , which may already meet you needs even without a local repository. Check sbuild(1) man page for more information. Thanks, Boyuan Yang
signature.asc
Description: This is a digitally signed message part