From Fedora Project Wiki
(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...")
 
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
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.  
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 <code>/etc/mock/site-defaults.cfg</code>
If you want the bind mounts to be available to all configurations, edit [[Mock#Generate_custom_config_file|the configuration file]].

Latest revision as of 13:13, 24 February 2016

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.