mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Revert "Do not rewrite SELinux labels on volume mounts"
This commit is contained in:
committed by
GitHub
parent
e0b892247f
commit
51a6b50a84
@@ -112,8 +112,8 @@ func SaveBackupBundleOnHost(ctx context.Context, host *hosts.Host, alpineSystemI
|
||||
hostCfg := &container.HostConfig{
|
||||
|
||||
Binds: []string{
|
||||
fmt.Sprintf("%s:/etc/kubernetes", path.Join(host.PrefixPath, "/etc/kubernetes")),
|
||||
fmt.Sprintf("%s:/backup", etcdSnapshotPath),
|
||||
fmt.Sprintf("%s:/etc/kubernetes:z", path.Join(host.PrefixPath, "/etc/kubernetes")),
|
||||
fmt.Sprintf("%s:/backup:z", etcdSnapshotPath),
|
||||
},
|
||||
Privileged: true,
|
||||
}
|
||||
@@ -149,8 +149,8 @@ func ExtractBackupBundleOnHost(ctx context.Context, host *hosts.Host, alpineSyst
|
||||
hostCfg := &container.HostConfig{
|
||||
|
||||
Binds: []string{
|
||||
fmt.Sprintf("%s:/etc/kubernetes", path.Join(host.PrefixPath, "/etc/kubernetes")),
|
||||
fmt.Sprintf("%s:/backup", etcdSnapshotPath),
|
||||
fmt.Sprintf("%s:/etc/kubernetes:z", path.Join(host.PrefixPath, "/etc/kubernetes")),
|
||||
fmt.Sprintf("%s:/backup:z", etcdSnapshotPath),
|
||||
},
|
||||
Privileged: true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user