rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | inherit deploy |
2 | |||||
3 | rootfs_monitor() { | ||||
4 | find ${IMAGE_ROOTFS} -type f -size +50k -print0 | xargs -0 du -h | sort -nr > ${IMAGE_ROOTFS}/rootfs_monitor.txt | ||||
5 | } | ||||
6 | |||||
7 | do_deploy () { | ||||
8 | install -d ${DEPLOYDIR} | ||||
9 | cp ${IMAGE_ROOTFS}/rootfs_monitor.txt ${DEPLOYDIR} | ||||
10 | } | ||||
11 | |||||
12 | addtask deploy before do_mtdverity_for_rootfs after do_image_complete | ||||
13 | |||||
14 | ROOTFS_POSTPROCESS_COMMAND += " rootfs_monitor;" | ||||
15 | |||||
16 |