Fix pkg_postinst to not exit if "$D" is not empty.
Otherwise, postinsts from update-rc.d.bbclass would not run and the
symlinks under /etc/rc?.d/ would not be created.
(From meta-openembedded rev:
fd7973168ab1c8f696cc5e8bcddfeac224cfc775)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
GROUPADD_PARAM_${PN} = "-r ftp"
pkg_postinst_${PN}() {
- if [ -n "$D" ]; then
- exit 0
- fi
+ if [ -z "$D" ]; then
if type systemd-tmpfiles >/dev/null; then
- systemd-tmpfiles --create
+ systemd-tmpfiles --create
elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
- ${sysconfdir}/init.d/populate-volatile.sh update
+ ${sysconfdir}/init.d/populate-volatile.sh update
fi
+ fi
}