Sha256: f77da2c06b7167ef03448d9098fc2bdb95a4bdd604a24df44bddd0a5aa374509
Contents?: true
Size: 698 Bytes
Versions: 4
Compression:
Stored size: 698 Bytes
Contents
module Getch module FileSystem module Ext4 module Encrypt class Format < Getch::FileSystem::Ext4::Encrypt::Device def initialize super @state = Getch::States.new() format end def format return if STATES[:format] exec("mkfs.fat -F32 #{@dev_esp}") if @dev_esp exec("mkfs.ext4 -F #{@luks_root}") exec("mkswap -f #{@dev_swap}") exec("mkfs.ext4 -F #{@luks_home}") if @dev_home @state.format end private def exec(cmd) Getch::Command.new(cmd).run! end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems