diff options
| author | Joshua Lock <joshua.g.lock@intel.com> | 2018-09-04 16:50:00 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-27 12:17:45 +0100 |
| commit | a43adeb1e334e016ee78b70d36f0280e6c4e2694 (patch) | |
| tree | 721e6ed96e6da27a01d87ed237f864c107ac04ed /meta | |
| parent | d4234f8a2f6a200d32e5b72e99c9a2305c90f4e4 (diff) | |
| download | poky-a43adeb1e334e016ee78b70d36f0280e6c4e2694.tar.gz | |
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.
(From OE-Core rev: 4feb8614ee25a3d3ceb7f5187120a1256a993155)
(From OE-Core rev: 4e67fa950cd3ca6e44d7f46743904d23a756e498)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/os-release/os-release.bb | 9 |
1 files changed, 6 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..bf4f815a10 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | inherit allarch | 1 | inherit allarch |
| 2 | 2 | ||
| 3 | SUMMARY = "Operating system identification" | 3 | SUMMARY = "Operating system identification" |
| 4 | DESCRIPTION = "The /etc/os-release file contains operating system identification data." | 4 | DESCRIPTION = "The /usr/lib/os-release file contains operating system identification data." |
| 5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
| 6 | INHIBIT_DEFAULT_DEPS = "1" | 6 | INHIBIT_DEFAULT_DEPS = "1" |
| 7 | 7 | ||
| @@ -42,6 +42,9 @@ python do_compile () { | |||
| 42 | do_compile[vardeps] += "${OS_RELEASE_FIELDS}" | 42 | do_compile[vardeps] += "${OS_RELEASE_FIELDS}" |
| 43 | 43 | ||
| 44 | do_install () { | 44 | do_install () { |
| 45 | install -d ${D}${sysconfdir} | 45 | install -d ${D}${libdir} ${D}${sysconfdir} |
| 46 | install -m 0644 os-release ${D}${sysconfdir}/ | 46 | install -m 0644 os-release ${D}${libdir}/ |
| 47 | lnr ${D}${libdir}/os-release ${D}${sysconfdir}/os-release | ||
| 47 | } | 48 | } |
| 49 | |||
| 50 | FILES_${PN} += "${libdir}/os-release" | ||
