Skip to content

Make the default directory to write quadlets configurable #219

@axel7083

Description

@axel7083

Description

A very big problem may occur if you play with multiple machines locally.

By default (in version 0.7.0 and bellow) the podman quadlet extension uses the following directories to write quadlets.

ℹ since admin is not supported, we should only consider ~/.config/containers/systemd/

if (options.admin) {
destination = joinposix('/etc/containers/systemd/', resource.filename);
} else {
destination = joinposix('~/.config/containers/systemd/', resource.filename);
}

But this directory is problematic. It is shared between machines! (At least on WSL)

Reproduce

  1. assert two machine running
    Image
  2. create a quadlet using the Generate quadlets
  3. refresh
  4. assert it is duplicated
    Image

Solution proposal

Change the directory to something else.

Supported path are the following

  • /etc/containers/systemd/users/

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions