use the lsb command to grab codename/series

This commit is contained in:
Arif Ali 2020-12-28 12:19:35 +00:00
parent 5e7ec80294
commit 872771f933
Signed by: arif
GPG Key ID: 369608FBA1353A70

View File

@ -47,7 +47,7 @@ write_files:
content: |
#!/bin/bash
series=$(grep UBUNTU_CODENAME /etc/os-release | sed -e 's/UBUNTU_CODENAME=//g')
series=$(lsb_release -c -s)
if [[ $series == "bionic" ]]
pkgs="qemu-kvm libvirt-bin qemu-efi"