From Fedora Project Wiki

Revision as of 13:13, 24 February 2016 by Msuchy (talk | contribs) (→‎Configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BindMount Plugin

This plugin enables setting up bind mountpoints inside the chroot. It is enabled by default but has no paths setup for bind mounts.


Configuration

In your config file insert the following lines:

   config_opts['plugin_conf']['bind_mount_enable'] = True
   config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))

The "/host/path" is the path to a directory on the host that will be the source of a bind-mount, while the '/bind/mount/path/in/chroot' is the path where it will be mounted inside the chroot.

If you want the bind mounts to be available to all configurations, edit the configuration file.