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