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] I: pipeline feature
Date: Fri, 19 Feb 2021 11:49:16 +0100
Message-ID: <20210219104916.afwvo4u4nzzjvcty@example.org> (raw)
In-Reply-To: <da8aafc2-529a-8556-5f2c-8156f24425c9@gmail.com>

On Thu, Feb 18, 2021 at 11:29:04PM +0300, Leonid Krivoshein wrote:
> > Это не помогло так как initrd не ждал эти разделы [1] и как только корень
> > был смонтирован, то сразу же загрузка пошла дальше. Можно указать, чтобы
> > монтировал все указанные рейды, но тогда initrd их смонтирует. Это
> > конечно не то, что ожидается.
> 
> Почему, вполне годное решение. А как это указать? Добавить mountpoints= к
> параметрам загрузки?

Сейчас при загрузке можно только переопределить параметры корня [1].
Дополнительные точки можно указать двумя способами:

* Добавить параметр x-initrd-mount в опции в fstab;
* Просто сделать добавить нужную точку монтирования в MOUNTPOINTS.
  Например: MOUNTPOINTS += /boot

> > > Уже немного разобрался, почему так происходит и
> > > даже придумал временный объезд. Возможно, простой способ ПРАВИЛЬНО решить
> > > проблему -- иметь два _РАЗНЫХ_ /etc/mdadm.conf на такие случаи, когда рейды
> > > используются не для корня. Главное, чтобы эти рейды с данными не начинал
> > > собирать интеллект в initramfs (ограничить DEVICES=...), тогда в обычной
> > > системе правила udev сами его соберут.
> > Я тоже мыслю в эту сторону [2].  Я подумываю о том, как бы сгенерировать
> > mdadm.conf только для MOUNTPOINTS.  К сожалению, я не уверен, что это
> > можно хорошо сделать. Именно поэтому я и не сделал этого сразу для фичи
> > mdadm.
> 
> Поэтому я и предложил затягивать в initramfs один из двух файлов:
> 
> /etc/mdadm-initrd.conf (если есть, то его)
> /etc/mdadm.conf (fallback)

Как быстрое решение это может сработать. Нужно только удостовериться, что
это решит упомянутые в треде баги. Мне в одной из багов говорят, что
специальный mdadm.conf не помогает с RAID1.

> Пусть болит голова у админов))

На этих товарищей я бы не надеялся ))

[1] https://github.com/osboot/make-initrd/blob/master/data/etc/rc.d/init.d/fstab#L84

-- 
Rgrds, legion



  reply	other threads:[~2021-02-19 10:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 11:40 Alexey Gladkov
2020-05-08 14:20 ` Michael Shigorin
2020-05-08 14:43   ` Alexey Gladkov
2020-05-09 13:08 ` Leonid Krivoshein
2020-05-09 14:28   ` Alexey Gladkov
2020-05-10 16:04   ` Alexey Gladkov
2020-05-21 13:36 ` Alexey Gladkov
2021-02-18 16:55   ` Leonid Krivoshein
2021-02-18 17:38     ` Alexey Gladkov
2021-02-18 18:18       ` Leonid Krivoshein
2021-02-18 19:37         ` Alexey Gladkov
2021-02-18 20:29           ` Leonid Krivoshein
2021-02-19 10:49             ` Alexey Gladkov [this message]
2021-02-19 13:40               ` Leonid Krivoshein
2021-02-20  9:58               ` Leonid Krivoshein
2021-02-20 10:31                 ` Alexey Gladkov
2021-02-20 11:05                   ` Leonid Krivoshein
2021-02-20 11:33                     ` Alexey Gladkov
2021-02-20 14:29                   ` 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=20210219104916.afwvo4u4nzzjvcty@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