Re: Passing Kernel Params from systemd-boot for Secure Boot UKI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's works, really appreciate your help, Lennart!

-----Original Message-----
From: Lennart Poettering <lennart@xxxxxxxxxxxxxx> 
Sent: Tuesday, October 8, 2024 9:39 PM
To: Mah, Yock Gen <yock.gen.mah@xxxxxxxxx>
Cc: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Passing Kernel Params from systemd-boot for Secure Boot UKI

On Di, 08.10.24 12:37, Mah, Yock Gen (yock.gen.mah@xxxxxxxxx) wrote:

> Really appreciate! I tried to create an PE "addon" using below:
>
> echo "yockgen=b" > cmdline.txt
>
> objcopy --input binary --output efi-app-x86_64 cmdline.txt 
> bootdm_b.addon.efi

This doesn't look right. You must insert the cmdline in the ".cmdline"
PE section, of course. As mentioned, addons follow the same structure as UKIs after all.

We generally recommend using ukify for generating UKIs and PE addons.

The man page even has an example doing exactly what you need to do:

https://github.com/systemd/systemd/blob/main/man/ukify.xml#L674

Lennart

--
Lennart Poettering, Berlin




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux