Skip to content

Commit

Permalink
Enable kernel live patching
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
AndrewGuenther committed Jan 23, 2024
1 parent b30180f commit c887089
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packer/fck-nat.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,14 @@ build {
"sudo yum --nogpgcheck -y localinstall /tmp/fck-nat-${var.version}-any.rpm",
]
}
}

provisioner "shell" {
inline = [
"sudo dnf install -y kpatch-dnf",
"sudo dnf kernel-livepatch -y auto",
"sudo dnf install -y kpatch-runtime",
"sudo dnf update kpatch-runtime",
"sudo systemctl enable kpatch.service && sudo systemctl start kpatch.service",
]
}
}

0 comments on commit c887089

Please sign in to comment.