* Plugin efibootguard-boot doesn't support to specify root parameter with unified kernel image
@ 2022-10-08 9:10 Mou, ChengShu(Ben)
2022-10-14 8:26 ` [cip-dev] " Gylstorff Quirin
0 siblings, 1 reply; 2+ messages in thread
From: Mou, ChengShu(Ben) @ 2022-10-08 9:10 UTC (permalink / raw)
To: cip-dev@lists.cip-project.org
Cc: Wang, Jing, Huang, Wei - Martin, Liu, Jun Dong,
Liao, Pingfang (Marshell)
[-- Attachment #1.1: Type: text/plain, Size: 1048 bytes --]
Hi all,
I have a target image with following partitions:
|- bootloader (efibootguard)
|- system A (linux.efi)
|- system B (linux.efi)
|- root FS A
|- root FS B
My plan is to use plugin efibootguard-boot to generate linux.efi respectively for system A/B and they can mount related root FS. So, I need to specify root parameter respectively in linux.efi.
After checking the code, I found that there is only 1 place to specify it, bootloader command with option --append in wks file. This method can only specify 1 root parameter.
I have tried to modify this plugin as following:
[cid:image003.png@01D8DB38.E8043130]
Within this modification, linux.efi could contain its own root parameter.
I don't know if it is a right way, please let me know if you have some suggestions. Thanks in advance.
With best regards,
Cheng Shu Mou
Siemens Ltd., China
RC-CN DI FA BL IE
Tianyuan road No.99
611731 CHENGDU, China
mailto:chengshu.mou@siemens.com
www.siemens.com<https://siemens.com>
[cid:image001.gif@01D8DB35.54E0ADF0]
[-- Attachment #1.2: Type: text/html, Size: 4217 bytes --]
[-- Attachment #2: image001.gif --]
[-- Type: image/gif, Size: 2730 bytes --]
[-- Attachment #3: image003.png --]
[-- Type: image/png, Size: 132398 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [cip-dev] Plugin efibootguard-boot doesn't support to specify root parameter with unified kernel image
2022-10-08 9:10 Plugin efibootguard-boot doesn't support to specify root parameter with unified kernel image Mou, ChengShu(Ben)
@ 2022-10-14 8:26 ` Gylstorff Quirin
0 siblings, 0 replies; 2+ messages in thread
From: Gylstorff Quirin @ 2022-10-14 8:26 UTC (permalink / raw)
To: cip-dev
Cc: Wang, Jing, Huang, Wei - Martin, Liu, Jun Dong,
Liao, Pingfang (Marshell), Moessbauer, Felix (T RDA IOT SES-DE)
Hi Cheng Shu Mou,
On 10/8/22 11:10, Mou, ChengShu(Ben) via lists.cip-project.org wrote:
> Hi all,
>
> I have a target image with following partitions:
>
> |- bootloader (efibootguard)
>
> |- system A (linux.efi)
>
> |- system B (linux.efi)
>
> |- root FS A
>
> |- root FS B
>
> My plan is to use plugin efibootguard-boot to generate linux.efi
> respectively for system A/B and they can mount related root FS. So, I
> need to specify root parameter respectively in linux.efi.
>
> After checking the code, I found that there is only 1 place to specify
> it, bootloader command with option --append in wks file. This method can
> only specify 1 root parameter.
>
> I have tried to modify this plugin as following:
Could please you sent your modification the next time as patch or text
snippet?
>
> Within this modification, linux.efi could contain its own root parameter.
>
> I don’t know if it is a right way, please let me know if you have some
> suggestions. Thanks in advance.
With a fixed root parameter you need to ensure
that the partition you update is on all devices the same, e.g.
A -> B -> A
1.0 -> 1.1 -> 1.2
For example this does not work:
A -> A
1.0 -> 1.2
The customer needs to update first to 1.1 and B before updating to 1.2.
In cip we have solved this issue of root fs selection by adding a uuid
or use verity checksum to identify the root file system corresponding to
the linux.efi. This allows us to update independent from the root
parameter.
Kind regards,
Quirin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-14 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 9:10 Plugin efibootguard-boot doesn't support to specify root parameter with unified kernel image Mou, ChengShu(Ben)
2022-10-14 8:26 ` [cip-dev] " Gylstorff Quirin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox