Commit 43f7eaed authored by Akihiro Suda's avatar Akihiro Suda Committed by Brad Davidson

rootless: fix "stat /run/user/1000: no such file or directory" on `kubectl run`

k3s was mounting a tmpfs on `/run` by itself, so it was hiding RootlessKit's `/run`. Signed-off-by: 's avatarAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
parent 67410d27
...@@ -15,8 +15,6 @@ import ( ...@@ -15,8 +15,6 @@ import (
func setupMounts(stateDir string) error { func setupMounts(stateDir string) error {
mountMap := [][]string{ mountMap := [][]string{
{"/run", ""},
{"/var/run", ""},
{"/var/log", filepath.Join(stateDir, "logs")}, {"/var/log", filepath.Join(stateDir, "logs")},
{"/var/lib/cni", filepath.Join(stateDir, "cni")}, {"/var/lib/cni", filepath.Join(stateDir, "cni")},
{"/var/lib/kubelet", filepath.Join(stateDir, "kubelet")}, {"/var/lib/kubelet", filepath.Join(stateDir, "kubelet")},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment