Class: Dracut::Hybrid
Instance Method Summary collapse
- #get_line ⇒ Object
-
#initialize(devs, options) ⇒ Hybrid
constructor
A new instance of Hybrid.
Methods inherited from Encrypt
Methods inherited from 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) ⇒ Hybrid
Returns a new instance of Hybrid.
5 6 7 8 |
# File 'lib/dracut/hybrid.rb', line 5 def initialize(devs, ) super @vg = [:vg_name] ||= 'vg0' end |
Instance Method Details
#get_line ⇒ Object
10 11 12 13 |
# File 'lib/dracut/hybrid.rb', line 10 def get_line root = Getch::Helpers.uuid @root "rd.luks.uuid=#{root} rd.lvm.vg=#{@vg} root=/dev/#{@vg}/root" end |