Method: GrubConfig#config_for_redhatish
- Defined in:
- lib/resources/grub_conf.rb
#config_for_redhatish(path) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/resources/grub_conf.rb', line 49 def config_for_redhatish(path) if inspec.os[:release].to_f < 7 @conf_path = path || '/etc/grub.conf' @version = 'legacy' else @conf_path = path || '/boot/grub2/grub.cfg' @defaults_path = '/etc/default/grub' @grubenv_path = '/boot/grub2/grubenv' @version = 'grub2' end end |