* [make-initrd] register_alias()
@ 2021-06-28 21:46 Leonid Krivoshein
2021-06-28 23:50 ` Alexey Gladkov
0 siblings, 1 reply; 5+ messages in thread
From: Leonid Krivoshein @ 2021-06-28 21:46 UTC (permalink / raw)
To: make-initrd
Привет!
Есть такая функция register_alias(). Примеров её использования не нашёл.
Возможно ли что-такое в cmdline.d:
register_alias BOOTCHAIN PIPELINE
?
т.е. при наличии pipeline=... в /proc/cmdline будет заполняться
переменная BOOTCHAIN?
Или я неправильно понял суть?
--
С уважением,
Леонид Кривошеин,
Начальник службы обеспечения совместимости.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [make-initrd] register_alias()
2021-06-28 21:46 [make-initrd] register_alias() Leonid Krivoshein
@ 2021-06-28 23:50 ` Alexey Gladkov
2021-06-29 0:41 ` Leonid Krivoshein
2021-07-01 23:31 ` Leonid Krivoshein
0 siblings, 2 replies; 5+ messages in thread
From: Alexey Gladkov @ 2021-06-28 23:50 UTC (permalink / raw)
To: make-initrd
On Tue, Jun 29, 2021 at 12:46:56AM +0300, Leonid Krivoshein wrote:
> Привет!
>
>
> Есть такая функция register_alias(). Примеров её использования не нашёл.
>
> Возможно ли что-такое в cmdline.d:
> register_alias BOOTCHAIN PIPELINE
> ?
Да.
> т.е. при наличии pipeline=... в /proc/cmdline будет заполняться переменная
> BOOTCHAIN?
> Или я неправильно понял суть?
Да. В указанном выше случае при указании pipeline= будет заполняться
BOOTCHAIN, как если бы был указан bootchain=.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [make-initrd] register_alias()
2021-06-28 23:50 ` Alexey Gladkov
@ 2021-06-29 0:41 ` Leonid Krivoshein
2021-06-29 8:35 ` Alexey Gladkov
2021-07-01 23:31 ` Leonid Krivoshein
1 sibling, 1 reply; 5+ messages in thread
From: Leonid Krivoshein @ 2021-06-29 0:41 UTC (permalink / raw)
To: make-initrd
29.06.2021 2:50, Alexey Gladkov пишет:
> On Tue, Jun 29, 2021 at 12:46:56AM +0300, Leonid Krivoshein wrote:
>> Привет!
>>
>>
>> Есть такая функция register_alias(). Примеров её использования не нашёл.
>>
>> Возможно ли что-такое в cmdline.d:
>> register_alias BOOTCHAIN PIPELINE
>> ?
> Да.
>
>> т.е. при наличии pipeline=... в /proc/cmdline будет заполняться переменная
>> BOOTCHAIN?
>> Или я неправильно понял суть?
> Да. В указанном выше случае при указании pipeline= будет заполняться
> BOOTCHAIN, как если бы был указан bootchain=.
>
Понял, спасибо большое! Ещё в копилку для документирования.)
Переделать текущую реализацию на алиас несложно и очевидно стоит стать
первым пользователем register_alias().
--
Best regards,
Leonid Krivoshein.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [make-initrd] register_alias()
2021-06-29 0:41 ` Leonid Krivoshein
@ 2021-06-29 8:35 ` Alexey Gladkov
0 siblings, 0 replies; 5+ messages in thread
From: Alexey Gladkov @ 2021-06-29 8:35 UTC (permalink / raw)
To: make-initrd
On Tue, Jun 29, 2021 at 03:41:23AM +0300, Leonid Krivoshein wrote:
> > Да. В указанном выше случае при указании pipeline= будет заполняться
> > BOOTCHAIN, как если бы был указан bootchain=.
> >
>
> Понял, спасибо большое! Ещё в копилку для документирования.)
>
> Переделать текущую реализацию на алиас несложно и очевидно стоит стать
> первым пользователем register_alias().
Я эту функцию делал для какой-то фичи вне make-initrd. Я даже попытался
найти её, но сходу не вспомнил.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [make-initrd] register_alias()
2021-06-28 23:50 ` Alexey Gladkov
2021-06-29 0:41 ` Leonid Krivoshein
@ 2021-07-01 23:31 ` Leonid Krivoshein
1 sibling, 0 replies; 5+ messages in thread
From: Leonid Krivoshein @ 2021-07-01 23:31 UTC (permalink / raw)
To: make-initrd
29.06.2021 2:50, Alexey Gladkov пишет:
> On Tue, Jun 29, 2021 at 12:46:56AM +0300, Leonid Krivoshein wrote:
>> Привет!
>>
>>
>> Есть такая функция register_alias(). Примеров её использования не нашёл.
>>
>> Возможно ли что-такое в cmdline.d:
>> register_alias BOOTCHAIN PIPELINE
>> ?
> Да.
>
>> т.е. при наличии pipeline=... в /proc/cmdline будет заполняться переменная
>> BOOTCHAIN?
>> Или я неправильно понял суть?
> Да. В указанном выше случае при указании pipeline= будет заполняться
> BOOTCHAIN, как если бы был указан bootchain=.
>
Почти всё получилось, но почему-то root=pipeline не работает, демон не
запускается. Что-то я делаю не так:
http://git.altlinux.org/people/klark/packages/?p=make-initrd-bootchain.git;a=tree;f=bootchain-core/data/lib/initrd/cmdline.d;h=383136d0b7c9174cc605aaa0499efd0aa43e3a5c;hb=a76395e644060c2cbf509dbcca9dfe65dc0016ba
--
Best regards,
Leonid Krivoshein.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-01 23:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 21:46 [make-initrd] register_alias() Leonid Krivoshein
2021-06-28 23:50 ` Alexey Gladkov
2021-06-29 0:41 ` Leonid Krivoshein
2021-06-29 8:35 ` Alexey Gladkov
2021-07-01 23:31 ` Leonid Krivoshein
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