Your message dated Mon, 13 Jul 2020 19:48:00 +0200
with message-id <[email protected]>
and subject line Re: sbuild: fail to work in unshare mode
has caused the Debian Bug report #960969,
regarding sbuild: fail to work in unshare mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
960969: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960969
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.79.1-1
Severity: normal

Hi,

I have tried to get sbuild working in unshare mode. Here are the steps I
have followed, from what I understood they should be sufficient:

sudo sysctl kernel.unprivileged_userns_clone=1
sbuild-createchroot --chroot-mode=unshare --make-sbuild-tarball 
~/.cache/sbuild/sid-amd64.tar.gz sid `mktemp -d` http://deb.debian.org/debian/
sbuild -d sid hello

The last step is unsuccessful, it seems to fail to execute any comment.
I have attached the output of the last command running with debug in
case it could help.

I have also tried to unpack the tarball and run the following command:
unshare -f -U -r -p -m --mount-proc -R sid

It works find, so it seems to show that the chroot creating is not
totally broken.

Thanks,
Aurelien

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
Hi,

On 2020-07-10 00:27, Johannes Schauer wrote:
> Hi,
> 
> On Mon, 18 May 2020 23:29:49 +0200 Aurelien Jarno <[email protected]> wrote:
> > I have tried to get sbuild working in unshare mode. Here are the steps I
> > have followed, from what I understood they should be sufficient:
> > 
> > sudo sysctl kernel.unprivileged_userns_clone=1
> > sbuild-createchroot --chroot-mode=unshare --make-sbuild-tarball 
> > ~/.cache/sbuild/sid-amd64.tar.gz sid `mktemp -d` 
> > http://deb.debian.org/debian/
> > sbuild -d sid hello
> > 
> > The last step is unsuccessful, it seems to fail to execute any comment.
> > I have attached the output of the last command running with debug in
> > case it could help.
> 
> this sounds very similar to what is described in #950684 which is now
> (hopefully) fixed in git. I never got to reproduce #950684 on my own system 
> and
> similarly, I also am unable to reproduce your problem. Thus, it would be
> helpful if you could clone the git repository and from the master branch
> execute:
> 
>     $ PERL5LIB=$(pwd)/lib bin/sbuild-createchroot --chroot-mode=unshare 
> --make-sbuild-tarball ~/.cache/sbuild/sid-amd64.tar.gz sid `mktemp -d` 
> http://deb.debian.org/debian/
>     $ PERL5LIB=$(pwd)/lib bin/sbuild --chroot-mode=unshare -d sid hello

Thanks for your answer. I was not able to get it working that way (perl
complains it can't find strict.pm), however after building the package
from git and installing it, I confirm everything works as expected.
Thanks for the help.

I am therefore closing the bug.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to