init: factory_utils: add option 'tmpfs'
Mount tmpfs to /var/. When booting from USB disk and run factory
toolkit, writing to /var/ slows down system performance dramatically.
Since there is no need to really write to stateful partition, using
option 'tmpfs' will mount tmpfs on /var, to improve performance
(especially when running tests like touchpad, touchscreen).
Also fix the path of option_file (/mnt/stateful_partition is not linked
to /usr/local/ when the function is called).
BUG=None
TEST=cros_workon-${BOARD} chromeos-test-init; build_image test
Change-Id: I9473261b26ac875bc35b370bbaae559df47bddc1
Reviewed-on: https://chromium-review.googlesource.com/1065755
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
Commit-Queue: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
1 file changed