aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>2016-03-24 10:45:45 +0200
committerJoshua Lock <joshua.g.lock@intel.com>2016-03-30 21:36:58 +0100
commitb1c48c6b2f76d3020f74f99b2e8a94976842af94 (patch)
tree85f518140d4a4ef39e5cef183b85297f2809447f /recipes-core
parent53f6246f272d289a6211b3412cac617aba77ae01 (diff)
downloadmeta-swupd-b1c48c6b2f76d3020f74f99b2e8a94976842af94.tar.gz
meta-swupd-b1c48c6b2f76d3020f74f99b2e8a94976842af94.tar.bz2
meta-swupd-b1c48c6b2f76d3020f74f99b2e8a94976842af94.zip
swupd-client: Tweak os-release to conform ClearLinux format
swupd-client checks VERSION_ID, which must match the OS_VERSION used for generating swupd bundles in the current build. Also move os-release from /etc to /usr/lib because swupd-client doesn't update files in /etc. Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com> Replaced "ln -s ../usr/lib/...." with "lnr ${D}/usr/lib/..." for the sake of consistency with OE-core common practices. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/swupd-client/os-release.bbappend13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-core/swupd-client/os-release.bbappend b/recipes-core/swupd-client/os-release.bbappend
new file mode 100644
index 0000000..69cb7c5
--- /dev/null
+++ b/recipes-core/swupd-client/os-release.bbappend
@@ -0,0 +1,13 @@
+# swupd-client checks VERSION_ID, which must match the OS_VERSION
+# used for generating swupd bundles in the current build.
+VERSION_ID = "${OS_VERSION}"
+
+FILES_${PN}_append = " /usr/lib/os-release "
+
+# As swupd-client doesn't update files in /etc move os-release's
+# content to /usr/lib
+do_install_append() {
+ install -d ${D}/usr/lib
+ mv ${D}/etc/os-release ${D}/usr/lib
+ lnr ${D}/usr/lib/os-release ${D}/etc/os-release
+}