Class: MountFs::Zfs

Inherits:
Minimal show all
Defined in:
lib/mountfs.rb

Instance Method Summary collapse

Methods included from NiTo

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

Constructor Details

#initialize(devs, options) ⇒ Zfs

Returns a new instance of Zfs.



135
136
137
138
139
# File 'lib/mountfs.rb', line 135

def initialize(devs, options)
  @zfs = options[:zfs_name]
  @os = options[:os]
  super
end

Instance Method Details

#mount_bootObject



145
146
147
148
149
# File 'lib/mountfs.rb', line 145

def mount_boot
  @boot || return

  Getch::Command.new("zfs mount b#{@zfs}/BOOT/#{@os}")
end

#mount_homeObject



151
152
# File 'lib/mountfs.rb', line 151

def mount_home
end

#mount_rootObject

Root should be alrealy mounted



142
143
# File 'lib/mountfs.rb', line 142

def mount_root
end