ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] IQ: HASHER problem: hasher-priv and prefix mismatch
@ 2003-12-08 23:31 Anton V. Denisov
  2003-12-09 11:46 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Anton V. Denisov @ 2003-12-08 23:31 UTC (permalink / raw)
  To: devel

Приветствую всех.

Ну вот и у меня случилась проблема с hasher'ом:

$
hsh --no-stuff --no-cache --no-contents-indices --no-sisyphus-check --target
=i686 /opt/tmp/hasher/ TODO/kernel-build-tools-0.5-alt5.src.rpm
/usr/lib/hasher-priv/hasher-priv: /opt/tmp/hasher/chroot: prefix mismatch
mkchroot: failed to make devices.

Для справки: /opt/tmp расположен на отдельном XFS разделе,
hasher-0.9.1-alt1, hasher-priv-0.6.1-alt1. Указанная ошибка не возникает,
если расположить workdir на том же ext2 разделе, где и расположен srpm
пакет. Как это полечить без обновления hasher & Co?

Кажется сам нашёл ответ на вопрос - надо подправить содержимое
/etc/hasher-priv/system. Дмитрий, на что влияет этот prefix? Файл
/usr/share/doc/hasher-priv-0.6.1/DESIGN несколько об этом умалчивает.

С уважением, Антон В. Денисов.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] IQ: HASHER problem: hasher-priv and prefix mismatch
  2003-12-08 23:31 [devel] IQ: HASHER problem: hasher-priv and prefix mismatch Anton V. Denisov
@ 2003-12-09 11:46 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2003-12-09 11:46 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

On Tue, Dec 09, 2003 at 11:31:01AM +1200, Anton V. Denisov wrote:
> Приветствую всех.
> 
> Ну вот и у меня случилась проблема с hasher'ом:
> 
> $
> hsh --no-stuff --no-cache --no-contents-indices --no-sisyphus-check --target
> =i686 /opt/tmp/hasher/ TODO/kernel-build-tools-0.5-alt5.src.rpm
> /usr/lib/hasher-priv/hasher-priv: /opt/tmp/hasher/chroot: prefix mismatch
> mkchroot: failed to make devices.
> 
> Для справки: /opt/tmp расположен на отдельном XFS разделе,
> hasher-0.9.1-alt1, hasher-priv-0.6.1-alt1. Указанная ошибка не возникает,
> если расположить workdir на том же ext2 разделе, где и расположен srpm
> пакет. Как это полечить без обновления hasher & Co?
> 
> Кажется сам нашёл ответ на вопрос - надо подправить содержимое
> /etc/hasher-priv/system. Дмитрий, на что влияет этот prefix? Файл

Все функции hasher-priv, которые выполняют chroot(2), проверяют, что
prefix является префиксом того места, в которое предполагается сделать
chroot(2).  По умолчанию, prefix=~ (т.е. разрешено порождать сборочную
среду только внутри $HOME).

> /usr/share/doc/hasher-priv-0.6.1/DESIGN несколько об этом умалчивает.

Там, кстати, написано, что /etc/hasher-priv/system - это общесистемный
конфиг, per-user изменения лучше вносить в /etc/hasher-priv/user.d/<user>


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-09 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08 23:31 [devel] IQ: HASHER problem: hasher-priv and prefix mismatch Anton V. Denisov
2003-12-09 11:46 ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git