quadlet: Add device support for .volume files

The Device, Type, Copy and Options keys are now supported in
quadlet  .volume files. This allows users to create filesystem
based volumes with quadlets .volume files.

Signed-off-by: Ingo Becker <ingo@orgizm.net>
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ingo Becker
2022-12-22 11:20:27 +01:00
committed by Ygal Blum
parent 4cd7f6354b
commit e62e42bfa9
5 changed files with 93 additions and 3 deletions

View File

@ -412,6 +412,23 @@ Set one or more OCI labels on the volume. The format is a list of
This key can be listed multiple times.
#### `Device=`
The path of a device which should be mounted for the volume.
#### `Type=`
The filesystem type of `Device` as used by the **mount(8)** commands `-t` option.
#### `Options=`
The mount options to use for a filesystem as used by the **mount(8)** command `-o` option.
#### `Copy=` (default to `yes`)
If enabled, the content of the image located at the mountpoint of the volume is copied into the
volume on the first run.
### Network units
Network files are named with a `.network` extension and contain a section `[Network]` describing the