Sha256: 529bd8dd0fe2e80de94c80babed09cbd63a36a7abc09c27cd2e0786e249d34f7

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

module Getch
  module FileSystem
    module Zfs
      module Encrypt
        class Device
          def initialize
            @disk = DEFAULT_OPTIONS[:disk]
            @user = DEFAULT_OPTIONS[:username]
            @dev_boot_efi = Helpers::efi? ? "/dev/#{@disk}1" : nil
            @dev_boot = Helpers::efi? ? nil : "/dev/#{@disk}2"
            @dev_swap = Helpers::efi? ? "/dev/#{@disk}2" : "/dev/#{@disk}3"
            @dev_root = Helpers::efi? ? "/dev/#{@disk}3" : "/dev/#{@disk}4"
            @boot_pool_name = 'bpool'
            @pool_name = 'zpool'
            @zfs_home = @user ? true : false
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getch-0.1.0 lib/getch/filesystem/zfs/encrypt/device.rb