lib/getch/config/grub.rb in getch-0.5.0 vs lib/getch/config/grub.rb in getch-0.7.0

- old
+ new

@@ -2,24 +2,29 @@ require 'nito' module Getch module Config + # install grub class Grub + include NiTo + 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 + protected + def x @log.info "Installing Grub on #{@disk}...\n" Helpers.efi? ? grub_efi : grub_bios - end + end private def grub_efi mount_efivars @@ -33,10 +38,10 @@ end # In case where efivars is not mounted # avoid error with grub def mount_efivars - NiTo.mount '-t efivarfs', 'efivarfs', '/sys/firmware/efi/efivars' + mount '-t efivarfs', 'efivarfs', '/sys/firmware/efi/efivars' end end end end