Sha256: 366997b27aadfca89b90106a309db631983793bdd9869fc7a2e5d2f26b53bf7a
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
module Getch module FileSystem module Lvm module Encrypt class Format < Device def initialize super @fs = 'ext4' @state = Getch::States.new() format end def format return if STATES[:format] puts "Format #{@disk}" exec("mkfs.fat -F32 #{@dev_esp}") if @dev_esp exec("mkfs.#{@fs} -F #{@dev_boot}") if @dev_boot exec("mkfs.#{@fs} -F #{@lv_root}") exec("mkfs.#{@fs} -F #{@lv_home}") if @lv_home @state.format end private def exec(cmd) Getch::Command.new(cmd).run! end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
getch-0.1.6 | lib/getch/filesystem/lvm/encrypt/format.rb |