From Fedora Project Wiki

< Mock

Revision as of 13:46, 24 October 2014 by Jcwillia (talk | contribs) (Created page with " == 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. == Configuratio...")
(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 file /etc/mock/site-defaults.cfg