Class: Dracut::Root

Inherits:
Object
  • Object
show all
Includes:
NiTo
Defined in:
lib/dracut/root.rb

Overview

base for other dracut child

Direct Known Subclasses

Encrypt, Lvm, Minimal, Zfs

Instance Method Summary collapse

Methods included from NiTo

cp, echo, echo_a, grep?, mkdir, mount, mount?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initialize(devs, options) ⇒ Root

Returns a new instance of Root.



11
12
13
14
15
16
17
# File 'lib/dracut/root.rb', line 11

def initialize(devs, options)
  @log = Getch::Log.new
  @root = devs[:root] ||= nil
  @swap = devs[:swap] ||= nil
  @fs = options[:fs] ||= 'ext4'
  @mountpoint = options[:mountpoint] ||= '/mnt/getch'
end

Instance Method Details

#generateObject



19
20
21
22
23
# File 'lib/dracut/root.rb', line 19

def generate
  host_only
  cmdline
  others
end