Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Modify paths to be configurable for rootless integration #1827

@gabibeyer

Description

@gabibeyer

As part of #1358 : current kata-runtime paths are hard-coded within the root directory. These need to be configurable to point to a rootless location. The default location will /run/usr/$UID, which is constructed by the github.com/containers/libpod/pkg/rootless GetRootlessRuntimeDir function call.

The following changes need to be made:

  • Makefile LOCALSTATEDIR
  • ctrsMapTreePath from katautils/oci.go
  • kataAgent kataHostSharedDir, kataGuestSharedDir, and kataGuestSandboxDir
  • storage directory locations
  • configuration.toml files: hypervisor kernel and image paths

As of right now, thinking of keeping the configuration.toml and Makefile defaults as is, and leaving it up to the user to modify those depending on if they are running rootlessly or not.

Metadata

Metadata

Assignees

Labels

enhancementImprovement to an existing featurewipWork in Progress (PR incomplete - needs more work or rework)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions