Sha256: 5af09d9cc03df231e032d3ebd2f29f4aa4a5247ec3e36600e0f2e2bd200832aa
Contents?: true
Size: 839 Bytes
Versions: 3
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_litteral: true require 'nito' require_relative '../getch/log' module Dracut class Root include NiTo 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 def generate host_only cmdline others end protected def host_only file = "#{@mountpoint}/etc/dracut.conf.d/host.conf" echo file, 'hostonly="yes"' echo_a file, 'use_fstab="yes"' end # man dracut.cmdline(7) def cmdline file = "#{@mountpoint}/etc/dracut.conf.d/cmdline.conf" line = get_line echo file, "kernel_cmdline=\"#{line}\"" end def get_line end def others end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
getch-0.3.4 | lib/dracut/root.rb |
getch-0.3.3 | lib/dracut/root.rb |
getch-0.3.0 | lib/dracut/root.rb |