Quoting Francesco Poli (2021-03-27 16:18:26)
> As a consequence, I feel like giving the "unshare" mode of mmdebstrap a
> try.
> 
> I tried again with my work-in-progress script:
> 
>   $ cd ~/Downloads/
>   $ mmdebstrap-autopkgtest-qemu 8GiB
>   I: automatically chosen mode: unshare
>   I: chroot architecture amd64 is equal to the host's architecture
>   I: automatically chosen format: tar
>   I: using ${HOME}/Downloads/mmdebstrap.43LR3zoGLq as tempdir
>   E: cannot create ${HOME}/Downloads: Permission denied; cannot create 
> ${HOME}/Downloads/mmdebstrap.43LR3zoGLq: Permission denied; cannot create 
> ${HOME}/Downloads/mmdebstrap.43LR3zoGLq//etc: Permission denied; cannot 
> create ${HOME}/Downloads/mmdebstrap.43LR3zoGLq//etc/apt: Permission denied; 
> cannot create ${HOME}/Downloads/mmdebstrap.43LR3zoGLq//etc/apt/apt.conf.d: 
> Permission denied
>   W: listening on child socket failed: 
>   I: removing tempdir ${HOME}/Downloads/mmdebstrap.43LR3zoGLq...
>   E: unable to chdir() to parent directory of 
> ${HOME}/Downloads/mmdebstrap.43LR3zoGLq: Permission denied
>   E: remove_tree failed
> 
> 
> OK, this does not work at all.
> I tried to read the relevant section in the mmdebstrap(1) man page, and
> there's some recommendation about an --unshare-helper option.
> 
> But to be honest, I failed to understand what I am supposed to do with
> this --unshare-helper option.
> Could you please clarify?

Quoting from the man page:

"For correct ownership information, the directory must be accessed from a
user namespace with the right subuid/subgid offset"

Which part is unclear about that?

> Please remember that my script exports TMPDIR='.', in order to avoid
> using a tightly sized /tmp partition, where several GB of data would
> definitely not fit.

I also don't understand which part of the error message above is unclear. It
tells you that you don't have permission to create the directories which means
that whatever your '${HOME}/Downloads' is (or one of its parent directories),
has permissions set such that the directory cannot be created and/or accessed.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to