diff options
| author | André Draszik <git@andred.net> | 2015-07-24 13:48:47 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-09 16:37:07 -0700 |
| commit | dcfe46aab5ceae780dda52c5bfae38b8918c4614 (patch) | |
| tree | 29077184582c6cfb4430f1eda65be623dd746dd0 | |
| parent | ab9bae919489c22d1969fbb33a5dbc8e1c432847 (diff) | |
| download | openembedded-core-dcfe46aab5ceae780dda52c5bfae38b8918c4614.tar.gz openembedded-core-dcfe46aab5ceae780dda52c5bfae38b8918c4614.tar.bz2 openembedded-core-dcfe46aab5ceae780dda52c5bfae38b8918c4614.zip | |
run-postinsts: use ${localstatedir} instead of hardcoding /var/lib
(From OE-Core rev: 48d735a8938ec7c49754a57019182ebcd9a2d8b6)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index f547a7b7bd..7f7779747a 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -20,7 +20,7 @@ for pm in $backend_list; do case $pm in "deb") - if [ -s "/var/lib/dpkg/status" ]; then + if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then pm_installed=true break fi diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb index d126132a87..11c94e57d8 100644 --- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb @@ -39,6 +39,7 @@ do_install() { sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ -e 's:#SBINDIR#:${sbindir}:g' \ -e 's:#BASE_BINDIR#:${base_bindir}:g' \ + -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \ ${D}${sbindir}/run-postinsts \ ${D}${systemd_unitdir}/system/run-postinsts.service } |
