logilab-devtools #6747 /dev/null not writable for some hosts [deprecated]

The problem comes from the ownership of /dev/null in the chrooted system:

# ls -l /dev/null -rw-r--r-- 1 root root 0 Nov 28 14:38 /dev/null

Trying to create with cdebootstrap:

sh: /dev/null: Permission denied
dh_installdirs: dpkg-architecture failed
make: *** [install] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
pbuilder: Failed autobuilding of package

and with debootstrap:

# lgp setup -c create -d unstable
* Have you already set your pbuilder variables in /etc/lgp/pbuilderrc ? [Y/n]
* Creating images now... It will take a while.
W: /root/.pbuilderrc does not exist
Distribution is unstable.
Building the build environment
 -> running debootstrap
mknod: `/var/cache/pbuilder/build/11065/./test-dev-null': Operation not permitted
E: Cannot install into target '/var/cache/pbuilder/build/11065/.' mounted with noexec or nodev
pbuilder: debootstrap failed
  -> Aborting with an error

Found some discussions by googling but not clean solution for now:

appeared in<not specified>
done in0.14.0
load left0.000
closed by<not specified>