mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-09 18:35:42 +00:00
If a privileged container is running, stops, and the devices on the host change, such as a USB device is unplugged, then a container would no longer start. Previously, the devices from the host were only being added to the container once: when the container was created. Now, this happens every time the container starts. I did this by adding a boolean to the container config that indicates whether to mount all of the devices or not, which can be set via an option. During spec generation, if the `MountAllDevices` option is set in the container config, all host devices are added to the container. Additionally, a couple of functions from `pkg/specgen/generate/config_linux.go` were moved into `pkg/util/utils_linux.go` as they were needed in multiple packages. Closes #13899 Signed-off-by: Jake Correnti <jcorrenti13@gmail.com> |
||
|---|---|---|
| .. | ||
| camelcase | ||
| filters.go | ||
| filters_test.go | ||
| kube.go | ||
| mountOpts.go | ||
| mountOpts_linux.go | ||
| mountOpts_other.go | ||
| utils.go | ||
| utils_darwin.go | ||
| utils_linux.go | ||
| utils_linux_test.go | ||
| utils_supported.go | ||
| utils_test.go | ||
| utils_unsupported.go | ||
| utils_windows.go | ||