-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
broadcom/onie: builds fail to install due to missing mokutil bin since secureboot merge #14316
Comments
you are installing from ONIE OS? |
I will look into that now. |
so ive confirmed that indeed mokutil doesn't exist in the onie image, however there isnt an official onie image update for the as7326_56x yet. IMHO i consider this a breaking change and its being backported to other builds right now... if a devices onie image doesnt contain the mokutil command AND the image being installed is not secureboot signed it should still install as expected without the need for mokutil |
I see, in general onie support secure boot like 2 years ago, so they should have some official version with mokutils. maybe we can add your suggestion and if the mokutils do not exist assume that the user will not use secure boot. |
If the image is built with unsigned/no_sign there is no need to call mokutil at all. There is also the option of looking for mokutil in the mounted image? |
actually mokutils its checking your BIOS, if your BIOS have secure boot enable, it will not install the image. when you are installing from onie in today flow you have access/mount part of the image only and today you dont have access to mokutils from the image itself, only from onie. i will double check the first suggestion, and I will check the onie official version, because they should support it as well |
just a note from some extra digging. |
you are correct, so in order to continue support device with older onie version, we are going to check if mokutil exist. |
I will add the follow code solution adding verification with
|
looks like it would work fine. Ive updated the phrasing of the error message below
|
This workaround helped me to avoid the Problem. Just before starting Installation:
|
#14589) …1.11 by using efivar tool instead #### Why I did it solution to BUG below/ #14316 bug report also in this issue: backport: secureboot support #14246 #### How I did it When installing an image secure boot is checking if the UEFI have the secure boot flag enabled or disabled using a tool name `mokutil` this tool its not exist in ONIE version older than 2021.11 so its crasshing the install. To fix that we add a coded that checking secure boot enabled/disabled by using efivar tool that should exist in any UEFI system #### How to verify it Install the image in a device with ONIE version older than 2021.11 and check that the installation and boot succeed (all docker up).
ONIE includes "mokutil" or not is not based on the version. ONIE has "mokutil" when you enable secure boot function. So, for better compatibility, you should use "efivar" to check secure boot, but not "mokutil". |
sonic-net#14589) …1.11 by using efivar tool instead #### Why I did it solution to BUG below/ sonic-net#14316 bug report also in this issue: backport: secureboot support sonic-net#14246 #### How I did it When installing an image secure boot is checking if the UEFI have the secure boot flag enabled or disabled using a tool name `mokutil` this tool its not exist in ONIE version older than 2021.11 so its crasshing the install. To fix that we add a coded that checking secure boot enabled/disabled by using efivar tool that should exist in any UEFI system #### How to verify it Install the image in a device with ONIE version older than 2021.11 and check that the installation and boot succeed (all docker up).
sonic-net#14589) …1.11 by using efivar tool instead #### Why I did it solution to BUG below/ sonic-net#14316 bug report also in this issue: backport: secureboot support sonic-net#14246 #### How I did it When installing an image secure boot is checking if the UEFI have the secure boot flag enabled or disabled using a tool name `mokutil` this tool its not exist in ONIE version older than 2021.11 so its crasshing the install. To fix that we add a coded that checking secure boot enabled/disabled by using efivar tool that should exist in any UEFI system #### How to verify it Install the image in a device with ONIE version older than 2021.11 and check that the installation and boot succeed (all docker up).
sonic-net#14589) …1.11 by using efivar tool instead #### Why I did it solution to BUG below/ sonic-net#14316 bug report also in this issue: backport: secureboot support sonic-net#14246 #### How I did it When installing an image secure boot is checking if the UEFI have the secure boot flag enabled or disabled using a tool name `mokutil` this tool its not exist in ONIE version older than 2021.11 so its crasshing the install. To fix that we add a coded that checking secure boot enabled/disabled by using efivar tool that should exist in any UEFI system #### How to verify it Install the image in a device with ONIE version older than 2021.11 and check that the installation and boot succeed (all docker up).
sonic-net#14589) …1.11 by using efivar tool instead #### Why I did it solution to BUG below/ sonic-net#14316 bug report also in this issue: backport: secureboot support sonic-net#14246 #### How I did it When installing an image secure boot is checking if the UEFI have the secure boot flag enabled or disabled using a tool name `mokutil` this tool its not exist in ONIE version older than 2021.11 so its crasshing the install. To fix that we add a coded that checking secure boot enabled/disabled by using efivar tool that should exist in any UEFI system #### How to verify it Install the image in a device with ONIE version older than 2021.11 and check that the installation and boot succeed (all docker up).
Description
self-build onie install on accton device failing from builds based on latest master due to missing mokutil, built without secureboot
Steps to reproduce the issue:
build an unsigned broadcom build from master with secureboot disabled. mokutil is not included, however the install script is calling mokutil here:
sonic-buildimage/installer/default_platform.conf
Line 438 in 35f8101
Describe the results you received:
install fails as it attempts to add a boot entry
install log
The text was updated successfully, but these errors were encountered: