Class: CmdLine::Grub

Inherits:
Object
  • Object
show all
Includes:
CmdLine
Defined in:
lib/cmdline.rb

Instance Method Summary collapse

Methods included from CmdLine

#echo

Constructor Details

#initialize(arg) ⇒ Grub

Returns a new instance of Grub.



62
63
64
65
66
# File 'lib/cmdline.rb', line 62

def initialize(arg)
  @conf = arg[:workdir]
  @default_alias = 'GRUB_CMDLINE_LINUX_DEFAULT'
  @cmd_alias = 'GRUB_CMDLINE_LINUX'
end

Instance Method Details

#mainObject



68
69
70
71
72
73
74
# File 'lib/cmdline.rb', line 68

def main
  puts ' > Generate cmdline for Grub...'
  cpu_mitigations
  distrust_cpu
  kernel_hardening
  quiet
end