Skip to content

feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default#7990

Open
miz060 wants to merge 3 commits intomainfrom
mitchzhu/disable_kernel_lockdown_packer-pr
Open

feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default#7990
miz060 wants to merge 3 commits intomainfrom
mitchzhu/disable_kernel_lockdown_packer-pr

Conversation

@miz060
Copy link
Copy Markdown
Member

@miz060 miz060 commented Feb 27, 2026

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:

  • Add note in our public docs
  • Add note in the AKS release notes
  • Update our TSG with instructions on how to check if kernel lockdown is enabled or not

Which issue(s) this PR fixes:

Fixes #

Validation:

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>
Copilot AI review requested due to automatic review settings February 27, 2026 22:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 lockdown cmdline argument using grubby.
  • Invoked this helper during pre-install-dependencies.sh for 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.

@miz060 miz060 changed the title feat: disable kernel lockdown mode for azurelinux 3.0 aks image feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants