From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Wait until the resume= is processed
Date: Thu, 25 Aug 2022 18:50:34 +0300
Message-ID: <YweaSimbW/TJEli3@portlab> (raw)
In-Reply-To: <Ywdt5yrXh6ptZb6Y@example.org>
On Thu, Aug 25, 2022 at 02:41:11PM +0200, Alexey Gladkov wrote:
> Привет!
Hi!
> Мне нужна ваша помощь. Я раздумывал про то как устроено resume в initramfs
> и связанные с этим проблемы.
>
> Если всё суммировать, то проблема лишь одна:
>
> Если swap на отдельном устройстве, то оно может проинициализироваться
> позже чем устройство, на котором находится корень. То есть мы не знаем по
> какому сценарию мы движемся.
>
> К счастью мы ждём не какой-нибудь swap, а вполне конкретный, определённый
> через параметр resume= . Поэтому если _начать_ считать, что указанное в
> параметре устройство обязательно должно по явиться, то неопределённости
> уже не будет.
>
> Проблема в том, что сейчас устройство указанное в resume= опционально т.е.
> параметр может указывать на что-то от предыдущий установки, например.
>
> У меня есть соблазн сделать:
>
> 1. Ждать устройство resume= и пробовать проснуться.
>
> 2. Если устройство есть и не получилось, то обрабатывать накопившиеся
> эвенты для обычной загрузки.
>
> 3. Если мы достигли rootdelay= и resume= не появился, то сбросить delay,
> выдать большое предупреждение об отсутствии resume= и грузиться нормально.
>
> 4. Возможно, при создании initramfs смотреть на resume= в /proc/cmdline и
> предупреждать, что устройства нет. В этом пункте я сильно не уверен.
>
> Что вы думаете по этому поводу ?
1-3 выглядит осмысленным.
--
WBR,
Vladimir D. Seleznev
next prev parent reply other threads:[~2022-08-25 15:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 12:41 Alexey Gladkov
2022-08-25 15:50 ` Vladimir D. Seleznev [this message]
2022-08-25 18:08 ` Leonid Krivoshein
2022-08-25 20:24 ` Alexey Gladkov
2022-08-26 21:48 ` Leonid Krivoshein
2022-08-26 22:56 ` Leonid Krivoshein
2022-08-26 23:42 ` Alexey Gladkov
2022-08-27 0:02 ` Alexey Gladkov
2022-08-27 1:01 ` 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=YweaSimbW/TJEli3@portlab \
--to=vseleznv@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