Class: Getch::Config::Grub
- Inherits:
-
Object
- Object
- Getch::Config::Grub
- Includes:
- NiTo
- Defined in:
- lib/getch/config/grub.rb
Overview
install grub
Instance Method Summary collapse
-
#initialize ⇒ Grub
constructor
A new instance of Grub.
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
#initialize ⇒ Grub
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 |