Sync write and call partprobe after factory_ufs_init
BUG=b:111503252
TEST=Manually on unprovisioned device.
Change-Id: Ife39a07a67200dc7dd575c7850c616b19d6e2c2a
Reviewed-on: https://chromium-review.googlesource.com/1215262
Commit-Ready: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
diff --git a/factory_install.sh b/factory_install.sh
index 1bb2603..02d8b22 100644
--- a/factory_install.sh
+++ b/factory_install.sh
@@ -978,8 +978,8 @@
fi
colorize green
- get_dst_drive
ufs_init
+ get_dst_drive
prepare_disk
select_board
diff --git a/factory_ufs_init.sh b/factory_ufs_init.sh
index 0e1419c..7f4720b 100644
--- a/factory_ufs_init.sh
+++ b/factory_ufs_init.sh
@@ -91,3 +91,7 @@
# Perform a SCSI rescan to bring the device online
echo "- - -" >"${UFS_DEV}"/host0/scsi_host/host0/scan
+
+# Sync write and partprobe
+sync
+partprobe