From: Michael Shigorin <mike@altlinux.org>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] I: pipeline feature
Date: Sat, 20 Feb 2021 17:29:32 +0300
Message-ID: <20210220142932.GA31850@imap.altlinux.org> (raw)
In-Reply-To: <20210220103151.cwp5scgiksafi32c@example.org>
On Sat, Feb 20, 2021 at 11:31:51AM +0100, Alexey Gladkov wrote:
> Есть подозрение, что для создания mdadm.conf достаточно:
>
> mddev=$(findmnt -n -o SOURCE "$mountpoint")
> mdadm --verbose --detail --scan "$mddev" > mdadm.conf
>
> Можно придумать такую последовательность:
>
> 1. Если есть /etc/mdadm-initrd.conf, то берём его.
> 2. Если в /etc/mdadm.conf только один ARRAY, то можно брать его.
> 3. Если ARRAY в /etc/mdadm.conf больше одного, то генерируем свой.
>
> или же можно просто пропустить второй шаг и если нет
> mdadm-initrd.conf, то сразу генерировать конфиг.
(я тут сбоку тихонько морально поддерживаю,
припоминая, как несколько лет назад возился
со схожими вопросами)
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
prev parent reply other threads:[~2021-02-20 14:29 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
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 [this message]
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=20210220142932.GA31850@imap.altlinux.org \
--to=mike@altlinux.org \
--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