Permalink
Browse files

cmd,dirs: treat manjaro the same as arch

Manjaro is a derivative of Arch and needs to be treated as such.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
  • Loading branch information...
1 parent 0bd37ea commit 413a2a099dc57e3fb7c7e82a6c7250cf4c2f74fd @zyga zyga committed with mvo5 Sep 14, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 cmd/cmd.go
  2. +1 −1 dirs/dirs.go
View
@@ -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
}
View
@@ -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)

0 comments on commit 413a2a0

Please sign in to comment.