mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-24 22:14:35 +00:00
in the isEphemeral case, the pvcBlock doesn't have a filled in name, which means the DevicePath is "/mnt". When using the OCI runtime runc, this is valid because runc sanitizes the path, mounting it in `/mnt` in the container. However, the OCI runtime crun does not do this. One can argue the validity of passing a path structured like a directory as a block device, but ultimately from what I can see this wasn't intentional. As such, fix it by setting the mount to be based on the first Volume name, which both cases should have filled out. Signed-off-by: Peter Hunt <pehunt@redhat.com>