ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@freesource.info>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] hasher-priv: unshare: Invalid argument
Date: Tue, 14 Dec 2010 04:23:21 +0300
Message-ID: <20101214012321.GA30687@mw.mithraen.ru> (raw)
In-Reply-To: <20101214011122.GC23566@altlinux.org>

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

On Tue, Dec 14, 2010 at 04:11:22AM +0300, Dmitry V. Levin wrote:
>> Тогда может хотя бы сообщение об ошибке сделать более человекопонятным?
DVL> hasher-priv-1.3.5-alt1-1-g41559f2 пишет более подробно:
DVL> hasher-priv: chrootuid: unshare CLONE_NEWNET: Invalid argument
DVL> - так будет понятнее?

Увы, нет -- это исключительно ключ для гугления не более того. Я например
про unshare раньше вообще не знал.

Так как тема сложная, то нормальное сообщение об ошибке должно включать в
себе ссылку на документацию где описано что это такое и что с этим делать
(т.е. что-то вроде  "на этом ядре неработает фича с запрещением доступа к
сети из хэшерницы, посему у нас ничего не работает -- отключите фичу
таким-то образом или поставьте такое-то ядро).

Кстати вот только что уже с 2.6.32-ovz-el-alt4 ошибка воспроизвелась.

DVL> Могу добавить в hasher поддержку какого-нибудь /etc/hasher.conf или
DVL> чего-нибудь аналогичного.

Это было бы прекрасно. 

Кстати о, раз уж ты начал активно хакать hasher. Многие вынуждены
изобретать велосипед у себя в ~/.hasher, можно ли это сделать как-то более
системно?

А именно, у меня сейчас в ~/.hasher

apt.conf
apt.conf.i586
apt.conf.M51.i586
apt.conf.M51.x86_64
apt.conf.x86_64
config
sources.list
sources.list.i586
sources.list.M51.i586
sources.list.M51.x86_64
sources.list.x86_64


apt.conf и sources.list -- симлинки.

В config есть такая конструкция:
# target
if [ `uname -m` = "i686" ]; then
        def_target=i586
        apt_config=$HOME/.hasher/apt.conf.i586
fi

сие делает сборку для i586 из hasher'а простым, но требовало прыжков с бубном.

при этом удобной ручки уже для выбора "под какой бранч собирать" нетути. Хотя я
уже подумываю для этого использовать какую-нибудь переменную окружения, которую
обрабатывать в .hasher/config.

Вопрос -- это мне одному кажется что если конфиг _приходится_ превращать к
хитрую логику для решения распространной задачи, это нехорошо?

-- 
С уважением, Денис

http://mithraen.ru/
----------------------------------------------------------------------------

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

  reply	other threads:[~2010-12-14  1:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 19:00 Michael Shigorin
2010-12-04 19:07 ` Dmitry V. Levin
2010-12-11  9:45   ` Vitaly Lipatov
2010-12-11 10:49     ` Michael Shigorin
2010-12-11 12:40     ` Dmitry V. Levin
2010-12-11 23:04       ` Денис Смирнов
2010-12-11 23:14         ` Dmitry V. Levin
2010-12-12  0:47           ` Денис Смирнов
2010-12-12 21:56             ` Dmitry V. Levin
2010-12-12 22:32               ` Денис Смирнов
2010-12-12 11:33           ` Michael Shigorin
2010-12-12 21:58             ` Dmitry V. Levin
2010-12-12 22:34               ` Денис Смирнов
2010-12-13  0:44                 ` Dmitry V. Levin
2010-12-14  1:04                   ` Денис Смирнов
2010-12-14  1:11                     ` Dmitry V. Levin
2010-12-14  1:23                       ` Денис Смирнов [this message]
2010-12-14 12:18                       ` Anton Farygin
2010-12-14 16:58               ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101214012321.GA30687@mw.mithraen.ru \
    --to=mithraen@freesource.info \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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