class Getch::FileSystem::Lvm::Device

Public Class Methods

new() click to toggle source
Calls superclass method Getch::FileSystem::Device::new
# File lib/getch/filesystem/lvm/device.rb, line 5
def initialize
  super
  @vg = 'vg0'
  @lv_root = "/dev/#{@vg}/root"
  @lv_swap = "/dev/#{@vg}/swap"
  @lv_home = @home_disk ? "/dev/#{@vg}/home" : nil
end

Private Instance Methods

search_boot() click to toggle source
# File lib/getch/filesystem/lvm/device.rb, line 15
def search_boot
  if @efi
    if @boot_disk
      @dev_esp = "/dev/#{@boot_disk}1"
    else
      @dev_esp = "/dev/#{@disk}1"
      @root_part += 1
    end
  else
    if @boot_disk
      @dev_gpt = "/dev/#{@boot_disk}1"
      @dev_boot = "/dev/#{@boot_disk}2"
      @dev_grub = "/dev/#{@boot_disk}"
    else
      @dev_gpt = "/dev/#{@disk}1"
      @dev_boot = "/dev/#{@disk}2"
      @dev_grub = "/dev/#{@disk}"
      @root_part += 2
    end
  end
end
search_swap() click to toggle source

The swap is a part of the LVM volume, so we clean the func

# File lib/getch/filesystem/lvm/device.rb, line 38
def search_swap
end