Merge pull request #733 from cailca/732

shimv2: add a comment in checkAndMount()
This commit is contained in:
Peng Tao
2020-09-27 16:29:51 +08:00
committed by GitHub

View File

@@ -179,6 +179,7 @@ func checkAndMount(s *service, r *taskAPI.CreateTaskRequest) (bool, error) {
if len(r.Rootfs) == 1 {
m := r.Rootfs[0]
// Plug the block backed rootfs directly instead of mounting it.
if katautils.IsBlockDevice(m.Source) && !s.config.HypervisorConfig.DisableBlockDeviceUse {
return false, nil
}