Package: sbuild
Version: 0.89.3
Severity: normal
X-Debbugs-Cc: [email protected]
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
-- System Information:
Debian Release: 13.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.22-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages sbuild depends on:
ii adduser 3.152
ii libsbuild-perl 0.89.3
ii perl 5.40.1-3
Versions of packages sbuild recommends:
ii autopkgtest 5.49
ii debootstrap 1.0.141
ii iproute2 6.15.0-1
ii mmdebstrap 1.5.7-1
ii schroot 1.6.13-7
ii uidmap 1:4.17.4-2
Versions of packages sbuild suggests:
ii e2fsprogs 1.47.2-3
ii kmod 34.2-2
ii wget 1.25.0-2
-- no debconf information