Class: OsCtld::Container::Hooks::PostMount
- Inherits:
-
Base
- Object
- Hook::Base
- Base
- OsCtld::Container::Hooks::PostMount
- Defined in:
- lib/osctld/container/hooks.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Hook::Base
Instance Method Summary collapse
- #environment ⇒ Object protected
- #executable(hook_path) ⇒ Object protected
Methods inherited from Base
Methods inherited from Hook::Base
blocking, blocking?, #blocking?, #exec, hook, #initialize, #setup
Constructor Details
This class inherits a constructor from OsCtld::Hook::Base
Instance Method Details
#environment ⇒ Object (protected)
82 83 84 85 86 |
# File 'lib/osctld/container/hooks.rb', line 82 def environment super.merge({ 'OSCTL_CT_ROOTFS_MOUNT' => opts[:rootfs_mount] }) end |
#executable(hook_path) ⇒ Object (protected)
88 89 90 |
# File 'lib/osctld/container/hooks.rb', line 88 def executable(hook_path) ['nsenter', '--target', opts[:ns_pid].to_s, '--mount', hook_path] end |