Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207499

Re: [sbuild] how to create chroot environment

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: [sbuild] how to create chroot environment
Date 2019-04-15 16:40 +0200
Message-ID <xNaW6-4RD-9@gated-at.bofh.it> (permalink)
References <xN7ES-2Yr-9@gated-at.bofh.it> <xN7Yd-35a-3@gated-at.bofh.it> <xN87U-38n-7@gated-at.bofh.it> <xNaMp-4Og-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Apr 15, 2019 at 03:26:04PM +0100, Jonathan Dowland wrote:
> On Mon, Apr 15, 2019 at 02:30:33PM +0300, Alexei Fedotov wrote:
> >it seems schroot package is somehow missed in my repository, I will
> >look into it.
> 
> schroot is merely recommended by sbuild, and not depended upon by it:
> presumably sbuild can be used in some other way without schroot. When
> you installed sbuild your package manager must have been configured
> not to install Recommends; the default behaviour (for apt, at least)
> is to install Recommends.

Yes, sbuild defaults to schroot, but can use other methods. From
sbuild's man page:

  --chroot-mode=schroot|sudo|autopkgtest
    Select the desired chroot mode. Four values are possible:
    schroot (the default), sudo (which uses sudo to execute
    chroot in a directory from  /etc/sbuild/chroot or ./chroot)
    and autopkgtest which uses the autopkgtest-virt-* binaries
    (selectable via the --autopkgtest-virt-server option). 
    This command line option sets the CHROOT_MODE configuration
    variable. See sbuild.conf(5) for more information.

So at first sight it seems that sbuild doesn't check whether schroot
is available, and if not, it runs aground by trying to use it, as
it is its default.

OP has installed schroot already, which is generally a Good Thing
anyway -- but whenever there are reasons not to use it, perhaps
the command-line option "--chroot-mode=sudo" (or its equivalent
config item) might be of help.

Cheers
-- tomás

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[sbuild] how to create chroot environment Alexei Fedotov <alexei.fedotov@gmail.com> - 2019-04-15 13:10 +0200
  Re: [sbuild] how to create chroot environment Georgi Naplatanov <gosho@oles.biz> - 2019-04-15 13:30 +0200
    Re: [sbuild] how to create chroot environment Alexei Fedotov <alexei.fedotov@gmail.com> - 2019-04-15 13:40 +0200
      Re: [sbuild] how to create chroot environment Alexei Fedotov <alexei.fedotov@gmail.com> - 2019-04-15 13:50 +0200
      Re: [sbuild] how to create chroot environment Jonathan Dowland <jmtd@debian.org> - 2019-04-15 16:30 +0200
        Re: [sbuild] how to create chroot environment <tomas@tuxteam.de> - 2019-04-15 16:40 +0200
          Re: [sbuild] how to create chroot environment Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2019-04-15 17:10 +0200
            Re: [sbuild] how to create chroot environment <tomas@tuxteam.de> - 2019-04-15 17:30 +0200

csiph-web