Debian Bug report logs - #657709
please add a possibility to create a chroot

version graph

Package: schroot; Maintainer for schroot is Christoph Biedl <debian.axhn@manchmal.in-ulm.de>; Source for schroot is src:schroot (PTS, buildd, popcon).

Reported by: Marc Haber <mh+debian-packages@zugschlus.de>

Date: Sat, 28 Jan 2012 08:21:01 UTC

Severity: wishlist

Found in version schroot/1.4.24-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#657709; Package schroot. (Sat, 28 Jan 2012 08:21:05 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
New Bug report received and forwarded. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sat, 28 Jan 2012 08:21:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: please add a possibility to create a chroot
Date: Sat, 28 Jan 2012 09:20:07 +0100
Package: schroot
Version: 1.4.24-1
Severity: wishlist

Hi,

my normal procedure to create a new chroot for use with schroot is to
create the file system, mount it, and invoke debootstrap. In this
process, I notoriously forget additional packages to be installed into
the chroot before it is actually useable.

Why not add a --create or --initialize switch to schroot which will
just invoke the scripts from setup.d with a new stage "create" or
"init"? That way, a local admin could write code to create chroots in
the right place so that this functionality is where an schroot user
would expect it.

If schroot would feel like actually providing functionality behind
this options, the issue is a bit more complicated. One would need to
support multiple methods to create a new chroot, debootstrap and
cdebootstrap being two of them, and create possibilities to pass
parameters to these methods, probably via schroot.conf options and/or
options pulled from a config script.

Greetings
Marc




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#657709; Package schroot. (Sat, 28 Jan 2012 10:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sat, 28 Jan 2012 10:51:04 GMT) (full text, mbox, link).


Message #10 received at 657709@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Marc Haber <mh+debian-packages@zugschlus.de>, 657709@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#657709: please add a possibility to create a chroot
Date: Sat, 28 Jan 2012 10:46:15 +0000
On Sat, Jan 28, 2012 at 09:20:07AM +0100, Marc Haber wrote:
> my normal procedure to create a new chroot for use with schroot is to
> create the file system, mount it, and invoke debootstrap. In this
> process, I notoriously forget additional packages to be installed into
> the chroot before it is actually useable.
> 
> Why not add a --create or --initialize switch to schroot which will
> just invoke the scripts from setup.d with a new stage "create" or
> "init"? That way, a local admin could write code to create chroots in
> the right place so that this functionality is where an schroot user
> would expect it.

I'm not sure I'm seeing the whole picture here.  If I understand
correctly, you want to run debootstrap by hand first, and then
have schroot do some initial setup on the chroot, presumably when you
first use it?

We could certainly add such an option.

> If schroot would feel like actually providing functionality behind
> this options, the issue is a bit more complicated. One would need to
> support multiple methods to create a new chroot, debootstrap and
> cdebootstrap being two of them, and create possibilities to pass
> parameters to these methods, probably via schroot.conf options and/or
> options pulled from a config script.

Such a facility would be useful.  I've avoided doing this so far
simply because there are so many different ways of setting one up,
writing a tool that supports everything would be quite difficult.
Are you aware of sbuild-createchroot, which does this to some
extent, but is limited to "directory" chroots at the moment--you
have to customise it after creation if you want anything fancier.

There is no reason we could not provide such a facility directly
in schroot (or a helper tool--it need not be in the main binary),
and provide hooks to permit extension by others.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#657709; Package schroot. (Sat, 28 Jan 2012 14:03:10 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-bugs@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sat, 28 Jan 2012 14:03:10 GMT) (full text, mbox, link).


Message #15 received at 657709@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-bugs@zugschlus.de>
To: Roger Leigh <rleigh@codelibre.net>
Cc: 657709@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#657709: please add a possibility to create a chroot
Date: Sat, 28 Jan 2012 15:01:36 +0100
On Sat, Jan 28, 2012 at 10:46:15AM +0000, Roger Leigh wrote:
> On Sat, Jan 28, 2012 at 09:20:07AM +0100, Marc Haber wrote:
> > my normal procedure to create a new chroot for use with schroot is to
> > create the file system, mount it, and invoke debootstrap. In this
> > process, I notoriously forget additional packages to be installed into
> > the chroot before it is actually useable.
> > 
> > Why not add a --create or --initialize switch to schroot which will
> > just invoke the scripts from setup.d with a new stage "create" or
> > "init"? That way, a local admin could write code to create chroots in
> > the right place so that this functionality is where an schroot user
> > would expect it.
> 
> I'm not sure I'm seeing the whole picture here.  If I understand
> correctly, you want to run debootstrap by hand first, and then
> have schroot do some initial setup on the chroot, presumably when you
> first use it?

I would want to be able to have schroot run debootstrap on request,
perfectly with parameters that I can choose.

> Are you aware of sbuild-createchroot, which does this to some
> extent, but is limited to "directory" chroots at the moment--you
> have to customise it after creation if you want anything fancier.

Yes, that's the cause because I would like to have it fancier, I'd
like to be able to quickly ditch and re-create a lvm-snapshot type
chroot Master.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 30 06:53:11 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.