Created
September 4, 2018 15:12
-
-
Save joshuagl/ad41e3cb476e49d66234d0dff4cd7edb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7c9274823490eb14befe77300521fe6adabf1768 Mon Sep 17 00:00:00 2001 | |
From: Joshua Lock <joshua.g.lock@intel.com> | |
Date: Tue, 4 Sep 2018 15:48:11 +0100 | |
Subject: [PATCH] os-release: fix to install in the expected location | |
os-release (5) recommends that the os-release file be installed in | |
/usr/lib/os-release and that /etc/os-release be a relative symlink to it. | |
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> | |
--- | |
meta/recipes-core/os-release/os-release.bb | 7 ++++--- | |
1 file changed, 4 insertions(+), 3 deletions(-) | |
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb | |
index f988704756..c6e36001dc 100644 | |
--- a/meta/recipes-core/os-release/os-release.bb | |
+++ b/meta/recipes-core/os-release/os-release.bb | |
@@ -1,7 +1,7 @@ | |
inherit allarch | |
SUMMARY = "Operating system identification" | |
-DESCRIPTION = "The /etc/os-release file contains operating system identification data." | |
+DESCRIPTION = "The /usr/lib/os-release file contains operating system identification data." | |
LICENSE = "MIT" | |
INHIBIT_DEFAULT_DEPS = "1" | |
@@ -42,6 +42,7 @@ python do_compile () { | |
do_compile[vardeps] += "${OS_RELEASE_FIELDS}" | |
do_install () { | |
- install -d ${D}${sysconfdir} | |
- install -m 0644 os-release ${D}${sysconfdir}/ | |
+ install -d ${D}${libdir} | |
+ install -m 0644 os-release ${D}${libdir}/ | |
+ lnr ${D}${libdir}/os-release ${D}${sysconfdir} | |
} | |
-- | |
2.17.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment