Sha256: 1ec7d72b8e51cfd269b304a868fef73bb01de5135f06ebe1384b66d5fe2731d7
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module Getch module FileSystem module Lvm class Deps def make install_bios unless Helpers::efi? install_deps options_make Getch::Make.new("genkernel --kernel-config=/usr/src/linux/.config all").run! end private def options_make grub = Helpers::efi? ? 'BOOTLOADER="no"' : 'BOOTLOADER="grub2"' datas = [ '', grub, 'INSTALL="yes"', 'MENUCONFIG="no"', 'CLEAN="yes"', 'SAVE_CONFIG="yes"', 'MOUNTBOOT="yes"', 'MRPROPER="no"', 'LVM="yes"', ] file = "#{MOUNTPOINT}/etc/genkernel.conf" File.write(file, datas.join("\n"), mode: 'a') end def install_deps Getch::Bask.new('-a lvm').run! Getch::Emerge.new('sys-fs/lvm2 genkernel').pkg! exec("systemctl enable lvm2-monitor") end def exec(cmd) Getch::Chroot.new(cmd).run! end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
getch-0.1.6 | lib/getch/filesystem/lvm/deps.rb |
getch-0.1.5 | lib/getch/filesystem/lvm/deps.rb |
getch-0.1.3 | lib/getch/filesystem/lvm/deps.rb |