diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-28 17:47:22 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-30 22:05:21 +0200 |
commit | b3c490c9185d5c7b4dd5001a434a0d41b14ef084 (patch) | |
tree | d8aee5dc0b9955e17c9be3a5cb02b9d839ef5708 /recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch | |
parent | 2f1fb4271246cd1ad92ca2c059f09752720cb17d (diff) |
snapd: copied from meta-snappy
https://github.com/morphis/meta-snappy/commit/f6df6a63756d9976bcccb5fefdbc64e5cc794c99
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
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.patch | 30 |
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 + |