Merge pull request #97 from mlaventure/root-propagation
Translate RootfsPropagation flags from spec to internal config
This commit is contained in:
commit
8d1f71c3d7
1 changed files with 9 additions and 0 deletions
|
@ -560,6 +560,15 @@ func (r *libcontainerRuntime) createLibcontainerConfig(cgroupName, bundlePath st
|
||||||
}
|
}
|
||||||
config.Mounts = append(config.Mounts, r.createLibcontainerMount(bundlePath, mp.Path, m))
|
config.Mounts = append(config.Mounts, r.createLibcontainerMount(bundlePath, mp.Path, m))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert rootfs propagation flag
|
||||||
|
if rspec.Linux.RootfsPropagation != "" {
|
||||||
|
_, pflags, _ := parseMountOptions([]string{rspec.Linux.RootfsPropagation})
|
||||||
|
if len(pflags) == 1 {
|
||||||
|
config.RootPropagation = pflags[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if err := r.createDevices(rspec, config); err != nil {
|
if err := r.createDevices(rspec, config); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue