Class: Getch::Config::Grub

Inherits:
Object
  • Object
show all
Includes:
NiTo
Defined in:
lib/getch/config/grub.rb

Overview

install grub

Instance Method Summary collapse

Methods included from NiTo

cp, echo, echo_a, grep?, mkdir, mount, mount?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initializeGrub

Returns a new instance of Grub.



11
12
13
14
15
16
17
18
# File 'lib/getch/config/grub.rb', line 11

def initialize
  @log = Log.new
  @disk = OPTIONS[:boot_disk] ||= OPTIONS[:disk]
  # https://wiki.archlinux.org/title/Install_Arch_Linux_on_ZFS
  @prefix = OPTIONS[:fs] == 'zfs' ? 'ZPOOL_VDEV_NAME_PATH=1' : ''
  @os_name = OPTIONS[:os].capitalize
  x
end