Skip to content

Commit

Permalink
Merge pull request gardenlinux#2178 from kshtsk/wip-opensuse
Browse files Browse the repository at this point in the history
bin/start-vm: add opensuse
  • Loading branch information
fwilhe authored Jul 12, 2024
2 parents 70fe4d1 + 368a154 commit 21c39fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/start-vm
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ get_os () {
os="arch"
elif [ "$host_dist" = "nixos" ]; then
os="nixos"
elif [ "$host_dist" = "opensuse" ]; then
os="opensuse"
else
echo "Error: Unsupported Linux distribution."
echo "Error: Unsupported Linux distribution [$host_dist]."
exit 1
fi

Expand Down Expand Up @@ -464,6 +466,9 @@ qemu_opt_uefi () {
# virtualisation.libvirtd.enable = true;
uefi_code="${uefi_code:-/run/libvirt/nix-ovmf/OVMF_CODE.fd}"
uefi_vars="${uefi_vars:-/run/libvirt/nix-ovmf/OVMF_VARS.fd}"
elif [ "$os" = opensuse ]; then
uefi_code="${uefi_code:-/usr/share/qemu/ovmf-x86_64.bin}"
uefi_vars="${uefi_vars:-/usr/share/qemu/ovmf-x86_64-vars.bin}"
else
echo "Error: Could not find UEFI code and vars file."
exit 1
Expand Down

0 comments on commit 21c39fc

Please sign in to comment.