Bug#1056385: in unshare mode, ischroot returns false

2023-11-24 Thread Jochen Sprickerhof
* Johannes Schauer Marin Rodrigues [2023-11-24 20:57]: this is is only invoked for --chrooted-*-hooks but CLONE_NEWNS is also what mmdebstrap unshares by default here: Ah, I only tested with your: --chroot-setup-commands='ischroot && echo "is chroot" || echo "is not chroot" Example. This

Bug#1056385: in unshare mode, ischroot returns false

2023-11-24 Thread Johannes Schauer Marin Rodrigues
Hi, Quoting Jochen Sprickerhof (2023-11-24 13:06:31) > The difference is due to mmdebstrap opening a extra namespace here: > > https://sources.debian.org/src/mmdebstrap/1.4.0-1/mmdebstrap/#L1707 this is is only invoked for --chrooted-*-hooks but CLONE_NEWNS is also what mmdebstrap unshares by

Bug#1056385: in unshare mode, ischroot returns false

2023-11-24 Thread Jochen Sprickerhof
Hi josch, * Johannes Schauer Marin Rodrigues [2023-11-22 07:22]: steps to reproduce: --chroot-setup-commands='ischroot && echo "is chroot" || echo "is not chroot" in contrast to mmdebstrap unshare mode, the contents of /proc/1/mountinfo and /proc/self/mountinfo are the same in sbuild. See

Bug#1056385: in unshare mode, ischroot returns false

2023-11-21 Thread Johannes Schauer Marin Rodrigues
Package: sbuild Version: 0.85.0 Severity: normal Hi, steps to reproduce: --chroot-setup-commands='ischroot && echo "is chroot" || echo "is not chroot" in contrast to mmdebstrap unshare mode, the contents of /proc/1/mountinfo and /proc/self/mountinfo are the same in sbuild. See