Bug 54719

Summary: /proc монтируется не полностью или некорректно
Product: Sisyphus Reporter: Сергей Жидких <rx1513>
Component: hasherAssignee: Dmitry V. Levin <ldv>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: at, glebfm, grenka, ldv, placeholder
Version: unstable   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
Простейший пакет способный вызвать указанную ошибку none

Description Сергей Жидких 2025-06-07 20:44:57 MSK
Created attachment 18782 [details]
Простейший пакет способный вызвать указанную ошибку

У меня возникает проблема при запуске тестов одного из своих пакетов, который требует, чтобы в системе был смонтирован /proc для получения pid текущего процесса:
/proc/self/stat: No such file or directory

Команда которой я запускаю сборку:
hsh --mountpoints=/proc -v

Важное примечание, при запуске через hsh-shell --mountpoints=/proc всё работает корректно.
Comment 1 Dmitry V. Levin 2025-06-07 23:12:47 MSK
$ 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.
Comment 2 Сергей Жидких 2025-06-08 13:46:19 MSK
Спасибо. Однако это не объясняет различие в работе команд.