[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#698347: debootstrap: New variant based on PRoot



Hi,

On Thu, 17 Jan 2013 13:20:14 +0100 =?utf-8?q?R=C3=A9mi_Duraffort?= <ivoire@videolan.org> wrote:
> For this reason, I patched debootstrap so it can create a rootfs using PRoot.
> This rootfs is then used for validating software in debian environment. Be
> careful that this new rootfs will not have the normal rights (root:root for
> /bin for instance) and should only be used for testing (with chroot or
> PRoot).

I would like to propose to add this feature in a different way. Instead of
adding a new --variant=proot option, add options that lets users run
debootstrap in a mode that does not set up /dev and /proc or otherwise does
stuff that strictly requires superuser privileges.

Doing it that way round would have a two advantages:

 - it would not further clutter the --variant option which is already
   overloaded with setting meaning "install these packages" (minbase, buildd)
   as well as "execute debootstrap in this mode" (fakeroot, scratchbox). There
   is no easy way to activate both fakeroot and minbase, for example even
   though there should.

 - it would magically also fix bug #731802 (debootstrap fails under LXC because
   mknod fails)

If more things that debootstrap does could be influenced via command line in a
more fine-grained way than the --variant option allows to, debootstrap could
run in a number of non-root setups like proot, fakeroot or lxc instead of
adding yet more --variant options for each new use case as they come up.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: