shantanoo-desai / packer-ubuntu-server-uefi

Packer Templates for creating Ubuntu Live Server Images with Packer + QEMU + Autoinstall (cloud-init)
Apache License 2.0
29 stars 13 forks source link

Add host distribution information for OVMF directory discrepancy #9

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

On Manjaro the OVMF directory is /usr/share/OVMF/x64/OVMF_{VARS,CODE}.fd whereas on Debian-based distros e.g. Ubuntu it is just /usr/share/OVMF/OVMF_{VARS,CODE}.fd.

Define a variable host_distro to be set to the ID variable in /etc/os-release in Makefile

This makes the template generic