class Getch::FileSystem::Ext4::Partition
Public Class Methods
new()
click to toggle source
Calls superclass method
Getch::FileSystem::Ext4::Device::new
# File lib/getch/filesystem/ext4/partition.rb, line 5 def initialize super @state = Getch::States.new() @clean = Getch::FileSystem::Clean @partition = Getch::FileSystem::Partition.new run_partition end
Public Instance Methods
run_partition()
click to toggle source
# File lib/getch/filesystem/ext4/partition.rb, line 13 def run_partition return if STATES[:partition ] @clean.hdd(@disk) @clean.external_disk(@disk, @boot_disk, @cache_disk, @home_disk) if Helpers::efi? partition_efi else partition_bios end @state.partition end
Private Instance Methods
partition_bios()
click to toggle source
# File lib/getch/filesystem/ext4/partition.rb, line 39 def partition_bios # None - Bios Boot Partition - 1MiB # / - Root # swap - Linux Swap - size of the ram # /home - Home @partition.gpt(@dev_gpt) @partition.swap(@dev_swap) @partition.root(@dev_root, "8304") @partition.home(@dev_home, "8302") if @dev_home end
partition_efi()
click to toggle source
Follow wiki.archlinux.org/index.php/Partitioning
# File lib/getch/filesystem/ext4/partition.rb, line 28 def partition_efi # /efi - EFI system partition - 260MB # swap - Linux Swap - size of the ram # / - Root # /home - Home @partition.efi(@dev_esp) @partition.swap(@dev_swap) @partition.root(@dev_root, "8304") @partition.home(@dev_home, "8302") if @dev_home end