Make-initrd development discussion
 help / color / mirror / Atom feed
From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Fwd: [#269003] TESTED make-initrd.git=2.14.1-alt1
Date: Tue, 6 Apr 2021 21:30:40 +0200
Message-ID: <20210406193040.glgiqhvsc74nq7vy@example.org> (raw)
In-Reply-To: <20210406190532.ujqp7edd3niul4n6@example.org>

On Tue, Apr 06, 2021 at 09:05:32PM +0200, Alexey Gladkov wrote:
> > > > 5. Исходная идея pipeline -- организовать цепочку с входом и выходом у
> > > > каждого элемента. А как быть в ситуациях, когда ты заказал дождаться 4х
> > > > устройств?
> > > pipeline=waitdev,waitdev,... \
> > > 	waitdev=/dev/cdrom \
> > > 	waitdev=/dev/sda
> > > 
> > > Это обсуждалось и исправлялось [1]. У любого шага есть начало и конец, но
> > > не обязательно, что на выходе должно быть что-то, что будет монтироваться.
> > > Это может быть шаг с диалоговым окном для корректировки поведения
> > > следующих шагов.
> > 
> > Хорошо, дождались нескольких устройств. Выход получили только от последнего.
> 
> Да нет же. Ты получаешь доступ ко _всем_ предыдущим шагам. Ты можешь к ним
> обращаться pipeN, N это номер шага.

Я знаю, что тут много моей вины. Я не задокументировал это должным
образом. Я своё оправдание скажу, что год это никто даже не пробовал
использовать.

Но посмотри на реализацию шага overlayfs. Я специально его сделал для
иллюстрации того, что возможно использовать несколько предыдущих шагов.

В overlayfs параметр если указан это список того, что будет lowerdir. Для
каждого элемента используется resolve_target, которая либо берёт что
укажешь, либо если это pipeN вернёт dst этого шага. Таким образом ты
можешь указать overlayfs=pipe1,pipe2,pipe3 и собрать три шага в свой dst.

-- 
Rgrds, legion



  reply	other threads:[~2021-04-06 19:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-05 20:33 ` Leonid Krivoshein
2021-04-05 22:51   ` Leonid Krivoshein
2021-04-06  8:44     ` Alexey Gladkov
2021-04-06 17:38       ` Leonid Krivoshein
2021-04-07 13:13         ` Alexey Gladkov
2021-04-06  8:28   ` Alexey Gladkov
2021-04-06 16:38     ` Leonid Krivoshein
2021-04-06 19:05       ` Alexey Gladkov
2021-04-06 19:30         ` Alexey Gladkov [this message]
2021-04-06 23:13           ` Leonid Krivoshein
2021-04-07 12:28             ` Alexey Gladkov
2021-04-06 23:00         ` Leonid Krivoshein
2021-04-07 12:11           ` Alexey Gladkov
2021-04-06 23:59         ` Leonid Krivoshein
2021-04-07  1:51     ` Leonid Krivoshein
2021-04-07 12:57       ` Alexey Gladkov
2021-04-07 18:29         ` Leonid Krivoshein
2021-05-26 15:05         ` Leonid Krivoshein
2021-05-26 18:12           ` Alexey Gladkov
2021-05-26 19:25             ` Leonid Krivoshein
2021-05-27  8:37               ` Alexey Gladkov
2021-05-27 12:29                 ` Leonid Krivoshein
2021-05-27 13:53                   ` Alexey Gladkov
2021-05-27 15:10                     ` Leonid Krivoshein
2021-05-27 17:04                       ` Alexey Gladkov
2021-05-27 17:11                         ` Leonid Krivoshein
2021-05-30 20:34                     ` Leonid Krivoshein

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=20210406193040.glgiqhvsc74nq7vy@example.org \
    --to=gladkov.alexey@gmail.com \
    --cc=make-initrd@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

Make-initrd development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
		make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
	public-inbox-index make-initrd

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


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