1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00
Files
os/docs/os/storage/additional-mounts/index.md
Sven Dowideit 159bd333c2 Merge pull request #2033 from yamamoto-febc/fix_typo
Fix typo in docs
(cherry picked from commit b30d6db3b0)
2017-08-08 08:58:07 +10:00

1.3 KiB

title, layout, redirect_from
title layout redirect_from
Additional Mounts in RancherOS os-default
os/configuration/additional-mounts/

Additional Mounts


Additional mounts can be specified as part of your cloud-config. These mounts are applied within the console container. Here's a simple example that mounts /dev/vdb to /mnt/s.

#cloud-config
mounts:
- ["/dev/vdb", "/mnt/s", "ext4", ""]

The four arguments for each mount are the same as those given for cloud-init. Only the first four arguments are currently supported. The mount_default_fields key is not yet implemented.

RancherOS uses the mount syscall rather than the mount command behind the scenes. This means that auto cannot be used as the filesystem type (third argument) and defaults cannot be used for the options (forth argument).

Shared Mounts

By default, /media and /mnt are mounted as shared in the console container. This means that mounts within these directories will propagate to the host as well as other system services that mount these folders as shared.

See here for a more detailed overview of shared mounts and their properties.