Hi Fred, PICCA Frederic-Emmanuel, on 2025-05-26: > We are just using sbuild in order to run the autopkgtest with the unshare > system > > It end up with this error > > autopkgtest [13:11:41]: test command1: rocm-test-launcher reconstruct > autopkgtest [13:11:41]: test command1: [----------------------- > /dev/kfd not present, system either lacks AMD GPU or 'amdgpu' driver is not > loaded. > Skipping tests. […] > do you know what should de done in order to prepare the chroot in our case.
If getting back to schroot mode is not a problem for you, there is the option to follow these instructions[1] I wrapped up a couple of years ago. They should still apply, modulo the fact that it is necessary to also pass --chroot-mode=schroot to the sbuild command, or adjust the sbuildrc to change the default mode. [1]: https://lists.debian.org/debian-ai/2022/06/msg00000.html > a sort of bind mount but when we tryed to bind mount something under /dev/, > it enup with this error > > I: Placed new chroot tarball at /home/picca/.cache/sbuild/unstable-amd64.tar > I: Unpacking /home/picca/.cache/sbuild/unstable-amd64.tar to > /tmp/tmp.sbuild.xDhCW0XnvX... > mount: /tmp/tmp.sbuild.xDhCW0XnvX/dev/kfd: wrong fs type, bad option, bad > superblock on /dev/kfd, missing codepage or helper program, or other error. > dmesg(1) may have more information after failed mount system call. > mount failed: No such file or directory at /usr/libexec/sbuild-usernsexec > line 387. > E: Running 'true' inside the chroot failed. Please file a bug against sbuild. > E: Error creating chroot session: skipping ufo-filters I'm not sure yet how to expose devices the right way in unshare mode. I would expect any method involving bind-mount to require running the pre-build commands as root, and any method involving mknod to require work with capabilities(7), user_namespaces(7) and setcap(8), but implementation details are evading me so far. In hope this helps, -- .''`. Étienne Mollier <emoll...@debian.org> : :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da `. `' sent from /dev/pts/3, please excuse my verbosity `- on air: Agents of Mercy - The Black Forest
signature.asc
Description: PGP signature