From: "Антон Мидюков" <antohami@basealt.ru>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Расширение раздела с корнем
Date: Thu, 28 Nov 2024 16:07:34 +0300
Message-ID: <7d3d3f7c-909d-4d48-84b5-a9e1f3a40843@basealt.ru> (raw)
In-Reply-To: <Z0hqYjCcWg8ig-p0@example.org>
28.11.2024 16:04, Alexey Gladkov пишет:
> On Wed, Nov 27, 2024 at 03:32:02PM +0100, Alexey Gladkov wrote:
>> On Tue, Nov 26, 2024 at 05:47:15PM +0100, Alexey Gladkov wrote:
>>>> И тому подобное бесконечно.
>>>> Я так понимаю, неправильно обрабатывает.
>>>> На них номер раздела буквой p отделяются от имени устройства.
>>>> Но код пока не изучал.
>>>
>>> Ясно. Предположу, что у вас только mmc карта, тогда ясно почему мы висим.
>>> kickstart ждёт блочные устройства, которые понимает.
>>>
>>> Вот так, думаю, будет работать:
>>>
>>> diff --git a/features/kickstart/data/bin/kickstart b/features/kickstart/data/bin/kickstart
>>> index 360c485b..291b12d6 100755
>>> --- a/features/kickstart/data/bin/kickstart
>>> +++ b/features/kickstart/data/bin/kickstart
>>> @@ -190,7 +190,7 @@ ks_block_devices()
>>> blocktype="$(get_device_type "$maj")"
>>>
>>> case "$blocktype" in
>>> - sd|virtblk)
>>> + sd|virtblk|mmc)
>>> ;;
>>> *)
>>> continue
>>
>> Весь этот код был выдуман, чтобы отфильтровать именно блочные устройства с
>> дисками, а не все подряд. Я решил _пока_ сделать вот такой белый список.
>>
>> Можно смотреть на partscan, но атрибут появился только в этом году [1].
>>
>> $ grep ^ /sys/block/*/partscan
>> /sys/block/loop0/partscan:0
>> /sys/block/loop1/partscan:0
>> /sys/block/loop2/partscan:0
>> /sys/block/nvme0n1/partscan:1
>>
>> В принципе можно посмотреть на systemd [2], где решается, кажется похожая
>> задача.
>>
>> [1] https://lore.kernel.org/all/20240502130033.1958492-1-hch@lst.de/
>> [2] https://github.com/systemd/systemd/blob/main/src/shared/blockdev-util.c#L359
>
> Антон, не мог бы ты, если будет время, проверить изменения в for-master ?
> Я попробовал переписать этот кусок а-ля systemd.
>
Да. Хорошо.
--
С уважением, Антон Мидюков <antohami@basealt.ru>
next prev parent reply other threads:[~2024-11-28 13:07 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 5:23 Egor Shestakov
2024-11-16 13:28 ` Alexey Gladkov
2024-11-23 14:18 ` Антон Мидюков
2024-11-23 17:59 ` Alexey Gladkov
2024-11-24 10:34 ` Антон Мидюков
2024-11-24 12:51 ` Alexey Gladkov
2024-11-24 13:00 ` Антон Мидюков
2024-11-24 15:36 ` Антон Мидюков
2024-11-24 17:17 ` Alexey Gladkov
2024-11-24 17:29 ` Антон Мидюков
2024-11-25 19:02 ` Антон Мидюков
2024-11-26 16:01 ` Alexey Gladkov
2024-11-26 16:06 ` Антон Мидюков
2024-11-26 16:32 ` Alexey Gladkov
2024-11-26 16:47 ` Alexey Gladkov
2024-11-26 17:22 ` Антон Мидюков
2024-11-26 17:32 ` Alexey Gladkov
2024-11-26 17:44 ` Alexey Gladkov
2024-11-26 17:56 ` Антон Мидюков
2024-11-26 18:16 ` Alexey Gladkov
2024-11-27 14:32 ` Alexey Gladkov
2024-11-28 13:04 ` Alexey Gladkov
2024-11-28 13:07 ` Антон Мидюков [this message]
2024-11-29 15:15 ` Антон Мидюков
2024-11-29 16:01 ` Alexey Gladkov
2024-11-29 16:07 ` Alexey Gladkov
2024-11-29 16:17 ` Антон Мидюков
2024-11-29 16:34 ` Alexey Gladkov
2024-11-29 18:13 ` Антон Мидюков
2024-11-29 19:00 ` Alexey Gladkov
2024-11-29 20:10 ` Антон Мидюков
2024-11-29 21:39 ` Alexey Gladkov
2024-11-24 13:21 ` Alexey Gladkov
2024-11-24 13:22 ` Антон Мидюков
2024-11-24 13:34 ` Alexey Gladkov
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=7d3d3f7c-909d-4d48-84b5-a9e1f3a40843@basealt.ru \
--to=antohami@basealt.ru \
--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