mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
dpkg: Correct paths in postinst
The postinstall needs to reference $D, not ${D} which would get expanded
by bitbake. This allows postinsts to run correctly on the target system.
(From OE-Core rev: 6573685a5374034df065c41bbe71c7ac49e4b9a4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -62,14 +62,14 @@ do_install_append_class-native () {
|
|||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then
|
if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then
|
||||||
install -d ${D}/${sysconfdir}/rcS.d
|
install -d $D${sysconfdir}/rcS.d
|
||||||
|
|
||||||
# this happens at S98 where our good 'ole packages script used to run
|
# this happens at S98 where our good 'ole packages script used to run
|
||||||
echo "#!/bin/sh
|
echo "#!/bin/sh
|
||||||
dpkg --configure -a ${REDIRECT_CMD}
|
dpkg --configure -a ${REDIRECT_CMD}
|
||||||
rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
||||||
" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
" > $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
||||||
chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
chmod 0755 $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user