Class: Dracut::Root
Overview
base for other dracut child
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(devs, options) ⇒ Root
constructor
A new instance of Root.
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, ) @log = Getch::Log.new @root = devs[:root] ||= nil @swap = devs[:swap] ||= nil @fs = [:fs] ||= 'ext4' @mountpoint = [:mountpoint] ||= '/mnt/getch' end |
Instance Method Details
#generate ⇒ Object
19 20 21 22 23 |
# File 'lib/dracut/root.rb', line 19 def generate host_only cmdline others end |