ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [#154910] EPERM (try 2) mkimage.git=0.2.17-alt1.1
Date: Mon, 21 Dec 2015 20:22:19 +0300
Message-ID: <5678354B.2080205@solin.spb.ru> (raw)
In-Reply-To: <20151221153840.GC9467@imap.altlinux.org>

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

21.12.2015 18:38, Michael Shigorin пишет:
> On Mon, Dec 21, 2015 at 04:57:43PM +0300, Aleksey Avdeev wrote:
...
> Я бы делал так.  Т.е. бинарник как ключ, по которому определяется
> -- делаем ли что-либо с таким бинарником _и_ нужными ему файлами.

  Я только за: такой подход мне упрощает подмену картинок.

> 
>>> Аналогично и далее с refind.
>> Т. е., если существует $boot/bootx64.efi, copy_refind() должна
>> завершить свою работу ничего (в том числе и все refind.conf)
>> не копируя?
> 
> Похоже, да.  Не было ли там переписывания $bin_path -- не помню
> на все сто процентов, но с такими штуками в любом случае пора
> завязывать.
> 
...
> 
>> Исправленный вариант --
>> <http://git.altlinux.org/people/solo/packages/mkimage.git?p=mkimage.git;a=commitdiff;h=ed07e32d585485cafb3889f78b403c1c8466cff5>

  Здесь реализована следующая логика:

1. Ничего не переписываем (в cp ключ -f заменён на -n).

2. Если с бинарником идут файлы с какими либо конфиги и/или данные --
попытка их копирования (или создания) производится только при отсутствии
целевого бинарника. Если же он существует -- считаю его конфигурацию
настроенной.

  Вопрос: Стоит ли данную логику перетаскивать в efiboot от
mkimage-profiles?

  Я в очередной раз периписал тег 0.2.17-alt1.1 (см.
<http://git.altlinux.org/people/solo/packages/mkimage.git?p=mkimage.git;a=tag;h=refs/tags/0.2.17-alt1.1>)
и отправил на тестовую сборку <http://git.altlinux.org/tasks/154910/>.

> 
> Смотрю.
> 
>> PS: Как лучше выполнить перенос скрипта в mkimage-profiles:
>>
>> 1. Перенести необходимые коммиты (затрагивающие tools/mki-copy-efiboot,
>> как сделано сейчас в efiboot, см.
>> <http://git.altlinux.org/people/solo/packages/mkimage-profiles.git?p=mkimage-profiles.git;a=shortlog;h=refs/heads/efiboot>)?

  Бранч efiboot обновлён (см.
http://git.altlinux.org/people/solo/packages/mkimage-profiles.git?p=mkimage-profiles.git;a=commit;h=22053bb0219deddc4bc3a0b41c94654c624b48f8)
-- теперь в загрузочное меню попадает $RELNAME. (Но может здесь стоит
использовать $GLOBAL_RELNAME?)

>>
>> 2. Прямой мерж необходимого?
> 
> Пока не знаю, надо думать/пробовать/думать.

  По моим прикидкам, в случае прямого мержа будет проще поддерживать
соответствие скриптов в mkimage и mkimage-profiles.

-- 

С уважением. Алексей.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 278 bytes --]

  reply	other threads:[~2015-12-21 17:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21 12:01 ` Michael Shigorin
2015-12-21 13:57   ` Aleksey Avdeev
2015-12-21 15:38     ` Michael Shigorin
2015-12-21 17:22       ` Aleksey Avdeev [this message]
2015-12-22 15:10         ` [devel] I: mkimage-profiles: efiboot (was: [#154910] EPERM (try 2) mkimage.git=0.2.17-alt1.1) Aleksey Avdeev
2015-12-25 18:40           ` [devel] I: mkimage-profiles: efiboot Aleksey Avdeev
2015-12-29 13:09             ` Aleksey Avdeev

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=5678354B.2080205@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=devel@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 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