ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@freesource.info>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] mkimage-profiles или hasher -- кто-то не работает
Date: Tue, 12 Aug 2014 18:02:49 +0400
Message-ID: <20140812140249.GA32390@mw.mithraen.ru> (raw)
In-Reply-To: <20140812094627.GD25054@imap.altlinux.org>

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

On Tue, Aug 12, 2014 at 01:46:27PM +0400, Michael Shigorin wrote:
> > Давно не собирал ничего из mkimage-profiles, а сейчас вижу при
> > попытке собрать что-либо:
> Кстати, а просто hsh там работает?
> mkdir -p /tmp/.private/smirnovdv/hasher
> hsh --initroot /tmp/.private/smirnovdv/hasher
> hsh-run /tmp/.private/smirnovdv/hasher -- ls /

Прекрасно работает.

А вот в том самом чруте, который остается после попытки сборки:

$ hsh-run . --rooter -- /.host/start.sh
/.host/entry: line 10: /.host/start.sh: Permission denied
$ hsh-run . --rooter -- cat /.host/start.sh
cat: /.host/start.sh: Permission denied

И, о чудо!

Я нашел в чем проблема: видимо mkimage создает тот самый script.sh
напрямую. В итоге из-за локального umask 007 к этому файлу был доступ от
юзера, но не было доступа из hasher.

Локально проблему решил umask 0 перед сборкой.

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

http://mithraen.ru/

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

  reply	other threads:[~2014-08-12 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-12  0:13 Денис Смирнов
2014-08-12  9:46 ` Michael Shigorin
2014-08-12 14:02   ` Денис Смирнов [this message]
2014-08-12 14:12     ` Michael Shigorin
2014-08-12 20:21       ` Денис Смирнов
2014-08-13 10:19         ` Michael Shigorin
2014-08-13 10:29           ` Денис Смирнов

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=20140812140249.GA32390@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