summaryrefslogtreecommitdiff
path: root/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch')
-rw-r--r--recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch b/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch
new file mode 100644
index 0000000..5e29cfd
--- /dev/null
+++ b/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch
@@ -0,0 +1,30 @@
+From 8462eb4536d0fa1e0ed704bc205b288341b66775 Mon Sep 17 00:00:00 2001
+From: Simon Fels <simon.fels@canonical.com>
+Date: Wed, 29 Mar 2017 17:33:34 +0200
+Subject: [PATCH] cmd: add poky to the list of distros which don't support
+ reexec
+
+'poky' is the std. release id for the Yocto reference distribution. This
+wont cover all Yocto based product as Yocto is a meta distribution so
+users are fine to change the release id to whatever they want. However
+this clearly takes care just about our reference Yocto system.
+---
+ cmd/cmd.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmd/cmd.go b/cmd/cmd.go
+index c70b6cc..c681b39 100644
+--- a/cmd/cmd.go
++++ b/cmd/cmd.go
+@@ -62,7 +62,7 @@ func ExecInCoreSnap() {
+
+ // can we re-exec? some distributions will need extra work before re-exec really works.
+ switch release.ReleaseInfo.ID {
+- case "fedora", "centos", "rhel", "opensuse", "suse":
++ case "fedora", "centos", "rhel", "opensuse", "suse", "poky":
+ logger.Debugf("re-exec not supported on distro %q yet", release.ReleaseInfo.ID)
+ return
+ }
+--
+2.7.4
+