Skip to content

Environment variable in /etc/environment ignored #5014

Open
@gaetanquentin

Description

@gaetanquentin

Summary

in /var/snap/microk8s/current/args/containerd-template.toml then environment SNAPSHOTTER is used:

[plugins."io.containerd.grpc.v1.cri".containerd]

# snapshotter is the snapshotter used by containerd.
snapshotter = "${SNAPSHOTTER}"

I wanted to set it in /etc/environment but it is ignored.

What Should Happen Instead?

SNAPSHOTTER="btrfs" env var should be used

Reproduction Steps

  1. Setting environment file:
    cat /etc/environment
    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
    SNAPSHOTTER="btrfs"

  2. systemctl daemon-reload

  3. sudo microk8s start

Introspection Report

useless

Can you suggest a fix?

no

Are you interested in contributing with a fix?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions