mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
run-postinsts: use ${localstatedir} instead of hardcoding /var/lib
(From OE-Core rev: 48d735a8938ec7c49754a57019182ebcd9a2d8b6) (From OE-Core rev: dcfe46aab5ceae780dda52c5bfae38b8918c4614) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7e9d0f0c7d
commit
01a50376df
@@ -20,7 +20,7 @@ for pm in $backend_list; do
|
|||||||
|
|
||||||
case $pm in
|
case $pm in
|
||||||
"deb")
|
"deb")
|
||||||
if [ -s "/var/lib/dpkg/status" ]; then
|
if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then
|
||||||
pm_installed=true
|
pm_installed=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ do_install() {
|
|||||||
sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \
|
sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \
|
||||||
-e 's:#SBINDIR#:${sbindir}:g' \
|
-e 's:#SBINDIR#:${sbindir}:g' \
|
||||||
-e 's:#BASE_BINDIR#:${base_bindir}:g' \
|
-e 's:#BASE_BINDIR#:${base_bindir}:g' \
|
||||||
|
-e 's:#LOCALSTATEDIR#:${localstatedir}:g' \
|
||||||
${D}${sbindir}/run-postinsts \
|
${D}${sbindir}/run-postinsts \
|
||||||
${D}${systemd_unitdir}/system/run-postinsts.service
|
${D}${systemd_unitdir}/system/run-postinsts.service
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user