Skip to content

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

Merged
miz060 merged 8 commits into
mainfrom
mitchzhu/disable_kernel_lockdown_packer-pr
Apr 21, 2026
Merged

feat: disable kernel lockdown mode for azurelinux 3.0 aks image by default#7990
miz060 merged 8 commits into
mainfrom
mitchzhu/disable_kernel_lockdown_packer-pr

Conversation

@miz060

@miz060 miz060 commented Feb 27, 2026

Copy link
Copy Markdown
Member

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread vhdbuilder/scripts/linux/mariner/tool_installs_mariner.sh Outdated
@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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread vhdbuilder/packer/pre-install-dependencies.sh
Copilot AI review requested due to automatic review settings April 17, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 comments.

Comment thread vhdbuilder/scripts/linux/mariner/tool_installs_mariner.sh
Comment thread vhdbuilder/scripts/linux/mariner/tool_installs_mariner.sh
Comment thread vhdbuilder/packer/pre-install-dependencies.sh
Comment thread vhdbuilder/scripts/linux/mariner/tool_installs_mariner.sh Outdated
Copilot AI review requested due to automatic review settings April 21, 2026 17:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 no new comments.

@miz060 miz060 merged commit 83bcff1 into main Apr 21, 2026
34 checks passed
@miz060 miz060 deleted the mitchzhu/disable_kernel_lockdown_packer-pr branch April 21, 2026 18:44
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.

4 participants