From Fedora Project Wiki
(Created page with "== Mount Plugin == The mount plugin is enabled by default, but has no configured directories to mount. == Configuration == You can disable this plugin by: config_opts[...")
 
m (Mattdm moved page Projects/Mock/Plugin/Mount to Mock/Plugin/Mount: Mock is not a Fedora Subproject.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Mount Plugin ==
== Mount Plugin ==


The mount plugin is enabled by default, but has no configured directories to mount.
This plugin allows you to mount directories into chroot. The mount plugin is enabled by default, but has no configured directories to mount.


== Configuration ==
== Configuration ==
Line 7: Line 7:
You can disable this plugin by:
You can disable this plugin by:


    config_opts['plugin_conf']['mount_enable'] = False
config_opts['plugin_conf']['mount_enable'] = False


you can configure this plugin by:
you can configure this plugin by:


    config_opts['plugin_conf']['mount_enable'] = True
config_opts['plugin_conf']['mount_enable'] = True
    config_opts['plugin_conf']['mount_opts']['dirs'].append(("/dev/device", "/mount/path/in/chroot/", "vfstype", "mount_options"))
config_opts['plugin_conf']['mount_opts']['dirs'].append(("/dev/device", "/mount/path/in/chroot/", "vfstype", "mount_options"))


A real life example:
A real life example:


    config_opts['plugin_conf']['mount_opts']['dirs'].append(("server.example.com:/exports/data", "/mnt/data", "nfs", "rw,hard,intr,nosuid,nodev,noatime,tcp"))
config_opts['plugin_conf']['mount_opts']['dirs'].append(("server.example.com:/exports/data", "/mnt/data", "nfs", "rw,hard,intr,nosuid,nodev,noatime,tcp"))

Latest revision as of 19:12, 28 April 2015

Mount Plugin

This plugin allows you to mount directories into chroot. The mount plugin is enabled by default, but has no configured directories to mount.

Configuration

You can disable this plugin by:

config_opts['plugin_conf']['mount_enable'] = False

you can configure this plugin by:

config_opts['plugin_conf']['mount_enable'] = True
config_opts['plugin_conf']['mount_opts']['dirs'].append(("/dev/device", "/mount/path/in/chroot/", "vfstype", "mount_options"))

A real life example:

config_opts['plugin_conf']['mount_opts']['dirs'].append(("server.example.com:/exports/data", "/mnt/data", "nfs", "rw,hard,intr,nosuid,nodev,noatime,tcp"))