Created attachment 18782 [details] Простейший пакет способный вызвать указанную ошибку У меня возникает проблема при запуске тестов одного из своих пакетов, который требует, чтобы в системе был смонтирован /proc для получения pid текущего процесса: /proc/self/stat: No such file or directory Команда которой я запускаю сборку: hsh --mountpoints=/proc -v Важное примечание, при запуске через hsh-shell --mountpoints=/proc всё работает корректно.
$ sed -n '/^4.2.1/,/^4.2.2/p' /usr/share/doc/hasher-*/FAQ |head -n -2 4.2.1 Is there any way to use proc filesystem inside chroot while building the package? Yes, there is. First, hasher-priv should be configured to allow mounting /proc inside chroot, either systemwide or personally for the user. Add the line allowed_mountpoints=/proc either to the systemwide config file /etc/hasher-priv/system or to the per-user config file /etc/hasher-priv/user.d/$USER. Second, the package you are going to build should include /proc in its build dependencies, e.g. BuildPreReq: /proc Alternatively, at least one of packages installed into the build environment should include /proc in its dependencies. Third, hsh should be run with parameter --mountpoints=/proc.
Спасибо. Однако это не объясняет различие в работе команд.