#981213 debrepro: fusermount -u fails in chroots

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Date:
2021-01-29 17:03:05 UTC
Severity:
normal
#981213#5
Date:
2021-01-27 18:29:00 UTC
From:
To:
Dear Maintainer,

any chrooted run debrepro fails on cleanup with s.th. like:
---
rm: cannot remove '/tmp/debrepro.WdTfiXpiIP/second/source': Device or resource busy
---

This is due to fusermount -u failing w/
---
fusermount: failed to mark mounts private: Invalid argument
---

fusermount in a check prior to the umount runs
---
res = mount("", "/", "", MS_PRIVATE | MS_REC, NULL);
---
This *seems* to fail in chroots "since some kernel versions";
i.e., definitely fails w/ linux 5.* (bullseye), definitely used
to work with linux 4.19.* (buster).

A simple "umount" otoh still works for me like a charm -- "working for me"-style
patch attached, but there is no real wisdom in it ;).

It really seems to be a generic problem, but I'd still love someone to re-test
this in case it's a PP after all...

Thanks!

Stephan
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts --- DEBCLEAN_CLEANDEBS=yes DEBUILD_PREPEND_PATH=/usr/lib/ccache
#981213#10
Date:
2021-01-29 16:55:12 UTC
From:
To:
Rehi,
resource busy

some more info: The behaviour is as described under (at least) linux
5.9.15.

Running with our current kernel (5.10.9) however, everything seems
fine.

If this really is gone for good with 5.10, I will just close this
eventually.

Hth,

S