Skip to content

Commit

Permalink
cmd,dirs: treat manjaro the same as arch
Browse files Browse the repository at this point in the history
Manjaro is a derivative of Arch and needs to be treated as such.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  • Loading branch information
zyga authored and mvo5 committed Sep 14, 2017
1 parent 0bd37ea commit 413a2a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Expand Up @@ -67,7 +67,7 @@ func distroSupportsReExec() bool {
return false
}
switch release.ReleaseInfo.ID {
case "fedora", "centos", "rhel", "opensuse", "suse", "poky", "arch":
case "fedora", "centos", "rhel", "opensuse", "suse", "poky", "arch", "manjaro":
logger.Debugf("re-exec not supported on distro %q yet", release.ReleaseInfo.ID)
return false
}
Expand Down
2 changes: 1 addition & 1 deletion dirs/dirs.go
Expand Up @@ -157,7 +157,7 @@ func SetRootDir(rootdir string) {
GlobalRootDir = rootdir

switch release.ReleaseInfo.ID {
case "fedora", "centos", "rhel", "arch":
case "fedora", "centos", "rhel", "arch", "manjaro":
SnapMountDir = filepath.Join(rootdir, "/var/lib/snapd/snap")
default:
SnapMountDir = filepath.Join(rootdir, defaultSnapMountDir)
Expand Down

0 comments on commit 413a2a0

Please sign in to comment.