Collect storage information for chrome://system (with workaround fix for stout)

This script will run at startup and dump result in /var/log
for SSD device display smartctl and hdparm result
for eMMC device display various eMMC attribute e.g. CID, CSD

This script also include a workaround fix for stout machine.
(Run "smartctl -a" instead of "smartctl -x" on stout)

BUG=chromium:315380,chromium:328587
TEST=Tested in link, pit, stout
Reboot, verified that /var/log/storage_info show meaningful
result and SSD does not crash on stout.

Change-Id: I85d9426131ad624930af9cfdd10311383d4b7dab
Reviewed-on: https://chromium-review.googlesource.com/180342
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-by: Puthikorn Voravootivat <puthik@chromium.org>
2 files changed
tree: d98072f6505a33dedbd2263df3df05be279408f8
  1. etc/
  2. init/
  3. scripts/
  4. inherit-review-settings-ok
  5. LICENSE