-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing Kernel Params from systemd-boot for Secure Boot UKI #10635
Comments
Hi @yockgen, would UKI addons be something you are looking for? https://uapi-group.org/specifications/specs/unified_kernel_image/#pe-addons |
Thanks @trungams , Yes, PE addon is one of possible solutions, however, there is a rigid security requirement for my project that if the PE addon EFI could be copied and pasted to other UKIs in the device to overwrite the cmdline, according to my understanding, this is possible. What is your suggestion on this? |
Hi @yockgen, sorry for the delayed reply. I just learned that Red Hat has been able to extend their UKI using UKI addons. Their approach is described in this blog: https://www.redhat.com/en/blog/extending-red-hat-unified-kernel-images-using-addons. You may already be aware of this. If not, I think it should work for your use case? |
Thanks @thien Trung ***@***.***>! I do aware about the addone and works! Thanks again!
From: Thien Trung Vuong ***@***.***>
Sent: Wednesday, 15 January, 2025 1:47 AM
To: microsoft/azurelinux ***@***.***>
Cc: Mah, Yock Gen ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/azurelinux] Passing Kernel Params from systemd-boot for Secure Boot UKI (Issue #10635)
Hi @yockgen<https://github.com/yockgen>, sorry for the delayed reply. I just learned that Red Hat has been able to extend their UKI using UKI addons. Their approach is described in this blog: https://www.redhat.com/en/blog/extending-red-hat-unified-kernel-images-using-addons. You may already be aware of this. If not, I think it should work for your use case?
—
Reply to this email directly, view it on GitHub<#10635 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJCC6QCDMLMV32GSL7OLFXD2KVEQ7AVCNFSM6AAAAABPNHTXM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJQG4YDIMBUGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
My Mariner OS is built with following features:
1, Unified Kernel Image (kernel+initrd+cmdline)
2. Systemd-boot as boot loader
3. Secure Boot enabled
4. Multi boot
Systemd-boot config files looks like below
With Secure Boot enabled, the /proc/cmdline is no longer overwritten by the systemd-boot configuration. The cmdline is shown those params during UKI built time.
Runtime logs as below:
I couldn't hardcode the 'yockgen' parameter during the build process, as its value depends on the runtime environment. This value needs to be assessed by a custom Dracut module during the initrd stage to mount specific devices.
What could be the possible solution for this?
Thanks a lot of any guidance!
The text was updated successfully, but these errors were encountered: