use the lsb command to grab codename/series
This commit is contained in:
parent
5e7ec80294
commit
872771f933
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user