Skip to content

Commit

Permalink
dirs: add features directory
Browse files Browse the repository at this point in the history
The features directory is designed to store marker files for optional
features that are activated in snapd that need to be checked by
snap-update-ns or other programs that cannot read the state file
directly.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  • Loading branch information
zyga committed Nov 21, 2018
1 parent ce19584 commit ad579bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dirs/dirs.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ var (

ErrtrackerDbDir string
SysfsDir string

FeaturesDir string
)

const (
Expand Down Expand Up @@ -292,4 +294,6 @@ func SetRootDir(rootdir string) {

ErrtrackerDbDir = filepath.Join(rootdir, snappyDir, "errtracker.db")
SysfsDir = filepath.Join(rootdir, "/sys")

FeaturesDir = filepath.Join(rootdir, snappyDir, "features")
}

0 comments on commit ad579bd

Please sign in to comment.