Dear Maintainer,
I try to setup sbuild in order to share a few files under /dev/shm between multiple instances.
mostly a local repository and some setup scripts.
It seems that by default a /dev/shm is available in the 'chroot', but It is not the 'host' /dev/shm
So I tryed to mount le 'host' /dev/shm into /dev/shm in the chroot like this
$unshare_bind_mounts = [ { directory => "/dev/shm", mountpoint => "/dev/shm" } ];
root@sbuild:/build/reproducible-path# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 131881160 26306308 105574852 20% /
udev 131831348 0 131831348 0% /dev/tty
tmpfs 131881156 0 131881156 0% /dev/shm
efivarfs 128 12 112 10% /sys/firmware/efi/efivars
tmpfs 4 0 4 0% /sys/kernel
As you can see /dev/shm is empty
But If I mount it like this
$unshare_bind_mounts = [ { directory => "/dev/shm", mountpoint => "/myshm" } ];
then
tmpfs 131881156 268 131880888 1% /myshm
And I can see the /dev/shm content of the 'host'.
What is the proper way to mount the host:'/dev/shm' into unshared:/dev/shm
thanks
Frederic