Sha256: 7af5f7658595bff736669e40a861dc41e40b4d319da9436b568e09583da99f22
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
module Getch module FileSystem module Lvm class Format < Getch::FileSystem::Lvm::Device def initialize super @fs = 'ext4' @state = Getch::States.new() format end def format return if STATES[:format] puts "Format #{@disk} with #{@fs}" system("mkfs.fat -F32 #{@dev_boot_efi}") if @dev_boot_efi system("mkfs.#{@fs} -F #{@dev_boot}") if @dev_boot system("mkswap -f #{@lv_swap}") system("mkfs.#{@fs} -F #{@lv_root}") system("mkfs.#{@fs} -F #{@lv_home}") if @lv_home @state.format end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
getch-0.1.0 | lib/getch/filesystem/lvm/format.rb |
getch-0.0.9 | lib/getch/filesystem/lvm/format.rb |
getch-0.0.8 | lib/getch/filesystem/lvm/format.rb |