Class: Dracut::Minimal

Inherits:
Root
  • Object
show all
Defined in:
lib/dracut/minimal.rb

Instance Method Summary collapse

Methods inherited from Root

#generate, #initialize

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

This class inherits a constructor from Dracut::Root

Instance Method Details

#get_lineObject



5
6
7
8
9
# File 'lib/dracut/minimal.rb', line 5

def get_line
  swap = Getch::Helpers.uuid @swap
  root = Getch::Helpers.uuid @root
  "root=UUID=#{root} rootfstype=#{@fs} resume=UUID=#{swap} rootflags=rw,relatime"
end