blob: 607d3d9348051e185576f3840c2bb8743016d9b6 [file] [log] [blame]
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " file://init_readonlyfs.sh \
"
FILES_${PN} += " /overlay \
/rom \"
do_install_append() {
if ${@bb.utils.contains('DISTRO_FEATURES','kernel_in_ubi','true','false',d)}; then
install -d ${D}/overlay
install -d ${D}/rom
install -m 0755 ${WORKDIR}/init_readonlyfs.sh ${D}${rootlibexecdir}/init_readonlyfs.sh
[ -e ${D}/sbin/init ] && rm -rf ${D}/sbin/init
ln -s ${rootlibexecdir}/init_readonlyfs.sh ${D}/sbin/init
fi
}
FILES_${PN} += " ${rootlibexecdir}/init_readonlyfs.sh "