| Summary: | /proc монтируется не полностью или некорректно | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Sisyphus | Reporter: | Сергей Жидких <rx1513> | ||||
| Component: | hasher | Assignee: | 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: |
|
||||||
$ 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. Спасибо. Однако это не объясняет различие в работе команд. |
Created attachment 18782 [details] Простейший пакет способный вызвать указанную ошибку У меня возникает проблема при запуске тестов одного из своих пакетов, который требует, чтобы в системе был смонтирован /proc для получения pid текущего процесса: /proc/self/stat: No such file or directory Команда которой я запускаю сборку: hsh --mountpoints=/proc -v Важное примечание, при запуске через hsh-shell --mountpoints=/proc всё работает корректно.