Skip to content

Commit

Permalink
Merge pull request #223 from orelmisan/reorder-boot-script
Browse files Browse the repository at this point in the history
VM boot script: Run driverctl from second boot
  • Loading branch information
RamLavi authored Jan 25, 2024
2 parents 786b774 + b9c39cc commit 475bf7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/internal/checkup/vmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,16 @@ func generateBootScript() string {
sb.WriteString("set -e\n")
sb.WriteString("\n")
sb.WriteString("checkup_tuned_adm_set_marker_full_path=" + config.BootScriptTunedAdmSetMarkerFileFullPath + "\n")
sb.WriteString("driverctl set-override " + config.VMIEastNICPCIAddress + " vfio-pci\n")
sb.WriteString("driverctl set-override " + config.VMIWestNICPCIAddress + " vfio-pci\n")
sb.WriteString("\n")
sb.WriteString("if [ ! -f \"$checkup_tuned_adm_set_marker_full_path\" ]; then\n")
sb.WriteString(" echo \"isolated_cores=" + isolatedCores + "\" > /etc/tuned/cpu-partitioning-variables.conf\n")
sb.WriteString(" tuned-adm profile cpu-partitioning\n\n")
sb.WriteString(" touch $checkup_tuned_adm_set_marker_full_path\n")
sb.WriteString(" reboot\n")
sb.WriteString("fi\n")
sb.WriteString("\n")
sb.WriteString("driverctl set-override " + config.VMIEastNICPCIAddress + " vfio-pci\n")
sb.WriteString("driverctl set-override " + config.VMIWestNICPCIAddress + " vfio-pci\n")

return sb.String()
}
Expand Down

0 comments on commit 475bf7a

Please sign in to comment.