I followed the simplechrome workflow as-is and got "Not enough free space on the device" with deploy_chrome. Here's some findings:
On the device side (squawks):
- I have a test image versioned R54-8662.0.0 (Chrome
54.0.2813.0) installed.
- /opt/google/chrome/chrome is 115MB
On the workstation side:
- chrome binary is 161MB (synced at #409960 and stripped in the staging directory [1])
- There are many lib*_library.so such as libui_library.so in the Release directory but these weren't included in the output of 'ldd chrome'
Two questions:
1) Why is chrome binary built locally considerably bigger?
2) Why are lib*_library.so built if these are not needed by the chrome binary?
With lib*_library.so removed from the Release directory, deploy_chrome passed the free space check, but failed in the end:
rsync: write failed on "/opt/google/chrome/chrome": No space left on device (28)
Looking at the device, the copy ended at 151MB out of 161MB. It was very close! :)
Passing --target-dir=... --mount would work around the problem, but I'd like deploy_chrome to just work without additional flags. However, if it's no longer feasible, I think we should update the doc and include the required options.
[1] You can check the contents in the staging directory created by deploy_chrome by by passing --staging-only --staging-dir=... --build-dir=... options.