feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default#7990
Open
feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default#7990
Conversation
The AzureLinux 3.0 kernel auto-enables lockdown when secure boot is detected via an OOT patch. Disable kernel lockdown by default to enable AKS customer installing their own custom GPU driver when using azurelinux 3.0. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Disables the Azure Linux 3.0 kernel cmdline lockdown=integrity setting during VHD build, to prevent lockdown being forced on in scenarios where customers need to install custom GPU drivers.
Changes:
- Added a Mariner/Azure Linux helper function to remove the kernel
lockdowncmdline argument usinggrubby. - Invoked this helper during
pre-install-dependencies.shfor Azure Linux 3.0 builds.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
vhdbuilder/scripts/linux/mariner/tool_installs_mariner.sh |
Adds disableKernelLockdownCmdline() to remove lockdown args from the kernel cmdline. |
vhdbuilder/packer/pre-install-dependencies.sh |
Calls disableKernelLockdownCmdline for Mariner/Azure Linux when OS_VERSION is 3.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Disable kernel lockdown by default to enable AKS customer installing their own custom GPU driver when using azurelinux 3.0. For trusted launch scenario, the AzureLinux 3.0 kernel auto-enables kernel lockdown mode when secure boot is detected via an OOT patch, so this won't introduce regression. Per PM discussion, we will follow up with:
Which issue(s) this PR fixes:
Fixes #
Validation: