Modify the OS version to install kernel extra package.
This commit is contained in:
parent
12aabfb6c0
commit
3b45ffb703
|
@ -9,11 +9,12 @@ end
|
||||||
# Install the extra kernel:
|
# Install the extra kernel:
|
||||||
unless node['is_ec2']
|
unless node['is_ec2']
|
||||||
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
||||||
when "18.04"
|
when "16.04"
|
||||||
package 'linux-image-extra-virtual'
|
|
||||||
else
|
|
||||||
KERNEL = run_command("uname -r").stdout.chomp
|
KERNEL = run_command("uname -r").stdout.chomp
|
||||||
package "linux-image-extra-#{KERNEL}"
|
package "linux-image-extra-#{KERNEL}"
|
||||||
|
|
||||||
|
when "18.04"
|
||||||
|
package 'linux-image-extra-virtual'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue