Skip to content

Commit

Permalink
QEMU: Also add UEFI boot
Browse files Browse the repository at this point in the history
  • Loading branch information
jlduran committed Sep 4, 2023
1 parent 6cc0c9c commit 7f57db5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Where is OVMF_CODE.fd?
run: |
cd /usr/local
find . -name OVMF_CODE.fd
- name: Build the Box
run: packer build -only=qemu.freebsd .
env:
Expand Down
3 changes: 3 additions & 0 deletions packer.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ source "qemu" "freebsd" {
boot_wait = "5s"
cpus = "${var.cpus}"
disk_size = "${var.disk_size}"
efi_boot = true
efi_firmware_code = "/usr/share/OVMF/OVMF_CODE.fd"
efi_firmware_vars = "/usr/share/OVMF/OVMF_VARS.fd"
headless = true
http_directory = "http"
iso_checksum = "file:${var.mirror}/${var.directory}/ISO-IMAGES/${var.revision}/CHECKSUM.SHA256-FreeBSD-${var.revision}-${var.branch}-${var.arch}${var.build_date}${var.git_commit}"
Expand Down

0 comments on commit 7f57db5

Please sign in to comment.