Since populate-volatile.sh will run everytime the device boots, no
need to postpone the postinstall when the rootfs is created.
[YOCTO #3840]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
"
pkg_postinst_${PN}-server() {
- # can't do this offline
- if [ "x$D" != "x" ]; then
- exit 1
- fi
-
- if [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
+ if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
${sysconfdir}/init.d/populate-volatile.sh update
fi
}