grml-debootstrap icon indicating copy to clipboard operation
grml-debootstrap copied to clipboard

Location of device archive hardcoded to `/etc/debootstrap/devices.tar.gz`

Open paulmenzel opened this issue 4 years ago • 5 comments

Users without root/superuser privileges wanting to use grml-debootstrap cannot write to /etc.

paulmenzel avatar Jun 07 '21 07:06 paulmenzel

Well, more than happy once grml-debootstrap can be executed without requiring root permissions, but currently we even explicitly check for root permissions, so I don't see the problem regarding the Users without root/superuser privileges wanting to use grml-debootstrap cannot write to /etc., tbh :)

But I'd like to get rid of the devices.tar.gz overall, probably we don't need this any longer at all? Maybe someone wants to look into this?

mika avatar Jun 07 '21 08:06 mika

fakechroot fakeroot ~/src/grml-debootstrap/grml-debootstrap … already gets pretty far.

For a virtual machine image requiring a loop mount (kpartx) it aborts though.

paulmenzel avatar Jun 07 '21 08:06 paulmenzel

mmdebstrap (in Debian) is a "similar" tool has lots of non-root options which might be handy for comparison.

adrelanos avatar Jun 07 '21 15:06 adrelanos

Thank you. grml-debootstrap is able to use mmdebstrap over debootstrap already, but you need apt, which is not installed on my non-Debian system, where I use grml-debootstrap.

paulmenzel avatar Jun 07 '21 15:06 paulmenzel

Since you're contributing here, I meant consider to check out mmdebstrap man page / source code for inspiration on non-root functionality. Actual use not required.

adrelanos avatar Jun 07 '21 17:06 adrelanos