mirror of
https://github.com/containers/podman.git
synced 2026-03-05 07:20:48 -05:00
Systemd supports unit files with a prefix '-' which tells the system to check if the content exists before using it. This would allow the QM project to specify AddDevice=-/dev/kvm, which would add the /dev/kvm device to the container iff it exists on the host. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
15 lines
428 B
Plaintext
15 lines
428 B
Plaintext
## assert-podman-args --device=/dev/fuse
|
|
## assert-podman-args --device=/dev/loop0:r
|
|
## assert-podman-args --device=/dev/null:/dev/test
|
|
## !assert-podman-args --device=/dev/bogus:r
|
|
## !assert-podman-args --device=/dev/bogus
|
|
## !assert-podman-args --device=/dev/bogus1
|
|
|
|
[Container]
|
|
Image=localhost/imagename
|
|
AddDevice=/dev/fuse
|
|
AddDevice=/dev/loop0:r
|
|
AddDevice=-/dev/null:/dev/test
|
|
AddDevice=-/dev/bogus:r
|
|
AddDevice=-/dev/bogus1
|