Bug 54719 - /proc монтируется не полностью или некорректно
Summary: /proc монтируется не полностью или некорректно
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: hasher (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-07 20:44 MSK by Сергей Жидких
Modified: 2025-06-08 13:46 MSK (History)
5 users (show)

See Also:


Attachments
Простейший пакет способный вызвать указанную ошибку (2.98 KB, application/gzip)
2025-06-07 20:44 MSK, Сергей Жидких
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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
Спасибо. Однако это не объясняет различие в работе команд.