#1140685 reportbug: pbuilder cannot build packages when BUILDPLACE is on a volume mounted nodev

Package:
pbuilder
Source:
pbuilder
Submitter:
Jarl Gullberg
Date:
2026-06-24 14:37:02 UTC
Severity:
normal
Tags:
#1140685#5
Date:
2026-06-24 14:30:03 UTC
From:
To:
Dear Maintainer,

A long-standing limitation of pbuilder has been an inability to build on
configurations where BUILDPLACE resides on a volume mounted with the
nodev option. This is a common hardening feature added to /var (among
others), and is a bit of a hindrance when using pbuilder.

Previously, this was blocked by debootstrap also not supporting nodev
volumes, but debootstrap has recently (2023) added support for
bindmounting if direct device creation is not possible. See
https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/109
for more details.

I have experimented a little and it appears that nodev can now be
supported with a fairly minimal set of changes to pbuilder. It does
require the use of USEDEVFS=yes, but that should be a simple ask for
people with nodev-mounted volumes.

I'm attaching a patch with my experimental changes that can serve as a
basis for inclusion into pbuilder if desired. I haven't fully tested it
in all configurations, but it does work without any trouble on my Debian
13 installation.