developer | efca97c | 2022-05-30 16:22:40 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | SRC_URI_append = " file://init_readonlyfs.sh \ |
| 3 | " |
| 4 | FILES_${PN} += " /overlay \ |
| 5 | /rom \" |
| 6 | |
| 7 | do_install_append() { |
| 8 | install -d ${D}/overlay |
| 9 | install -d ${D}/rom |
| 10 | install -m 0755 ${WORKDIR}/init_readonlyfs.sh ${D}${rootlibexecdir}/init_readonlyfs.sh |
| 11 | [ -e ${D}/sbin/init ] && rm -rf ${D}/sbin/init |
| 12 | ln -s ${rootlibexecdir}/init_readonlyfs.sh ${D}/sbin/init |
| 13 | } |
| 14 | |
| 15 | FILES_${PN} += " ${rootlibexecdir}/init_readonlyfs.sh " |