Class: MountFs::Zfs
Instance Method Summary collapse
-
#initialize(devs, options) ⇒ Zfs
constructor
A new instance of Zfs.
- #mount_boot ⇒ Object
- #mount_home ⇒ Object
-
#mount_root ⇒ Object
Root should be alrealy mounted.
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) ⇒ Zfs
Returns a new instance of Zfs.
135 136 137 138 139 |
# File 'lib/mountfs.rb', line 135 def initialize(devs, ) @zfs = [:zfs_name] @os = [:os] super end |
Instance Method Details
#mount_boot ⇒ Object
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_home ⇒ Object
151 152 |
# File 'lib/mountfs.rb', line 151 def mount_home end |
#mount_root ⇒ Object
Root should be alrealy mounted
142 143 |
# File 'lib/mountfs.rb', line 142 def mount_root end |