commit | 7a7ee9c80d854ff197e3f522f60ff7d2b0151a7b | [log] [tgz] |
---|---|---|
author | Milton Miller <miltonm@us.ibm.com> | Mon May 23 18:22:11 2016 -0500 |
committer | Milton Miller <miltonm@us.ibm.com> | Sat Jun 25 17:58:01 2016 -0500 |
tree | e4376f87db5735c294d1f7af53fe0c62b504199c | |
parent | 7dcd16041c508f47e17ad45235d3887a038137ee [diff] |
initfs: update: add check for image size vs mtd size The flashcp command will check the file size vs the partition size, so add a check when looking at images. Use stat -L -c "%s" to get the file size, and compare it to the mtd size from the sysfs size attribute. If this check is suppressed the enforcement is left to flashcp. Signed-off-by: Milton Miller <miltonm@us.ibm.com>