correct the grub path for rhel 7 based os in grub_conf resource (#2332)

Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
This commit is contained in:
Patrick Münch 2017-11-27 17:39:20 +01:00 committed by Adam Leff
parent 95f825aec2
commit 7d95ce8300

View file

@ -50,7 +50,7 @@ class GrubConfig < Inspec.resource(1) # rubocop:disable Metrics/ClassLength
@conf_path = path || '/etc/grub.conf'
@version = 'legacy'
else
@conf_path = path || '/boot/grub/grub.cfg'
@conf_path = path || '/boot/grub2/grub.cfg'
@defaults_path = '/etc/default/grub'
@version = 'grub2'
end