Skip to content

Commit

Permalink
pillar: Add support for predefined OVMF settings based on resolution.…
Browse files Browse the repository at this point in the history
… (1/2)

Implemented logic to select predefined OVMF_VARS.fd files for specific
screen resolutions. Added pre-saved OVMF settings for 800x600, 1024x768,
1280x800, and 1920x1080 resolutions, ensuring clean boot entries.

Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
  • Loading branch information
OhmSpectator committed Sep 19, 2024
1 parent e869e8f commit 14c4cd5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions pkg/pillar/types/locationconsts.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ const (
OVMFSettingsDir = PersistDir + "/ovmf"
// OVMFSettingsTemplate - template file for OVMF settings
OVMFSettingsTemplate = "/usr/lib/xen/boot/OVMF_VARS.fd"
// CustomOVMFSettingsDir - directory for custom OVMF settings (for different resolutions)
CustomOVMFSettingsDir = "/hostfs/etc/ovmf"
)

var (
Expand Down

0 comments on commit 14c4cd5

Please sign in to comment.