Class: OsCtld::Container::Hooks::PreMount
- Defined in:
- lib/osctld/container/hooks/pre_mount.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #environment ⇒ Object protected
- #executable ⇒ Object protected
Methods inherited from Base
blocking, blocking?, #blocking?, #exec, exist?, hook, hook_path, #hook_path, #initialize, run
Constructor Details
This class inherits a constructor from OsCtld::Container::Hooks::Base
Instance Method Details
#environment ⇒ Object (protected)
9 10 11 12 13 |
# File 'lib/osctld/container/hooks/pre_mount.rb', line 9 def environment super.merge({ 'OSCTL_CT_ROOTFS_MOUNT' => opts[:rootfs_mount], }) end |
#executable ⇒ Object (protected)
15 16 17 |
# File 'lib/osctld/container/hooks/pre_mount.rb', line 15 def executable ['nsenter', '--target', opts[:ns_pid].to_s, '--mount', hook_path] end |