gooftool: change postinst param for new cros_installer.

--noupdate_firmware is not available and IS_FACTORY_INSTALL=1 is the better way
to stop firmware updating.

TEST=./ # pass, not seeing firmware updates.

Change-Id: I6d4a73850c41404cdc1a54fb8d36fa361a6273c0
Reviewed-by: Tammo Spalink <>
Commit-Ready: Hung-Te Lin <>
Tested-by: Hung-Te Lin <>
diff --git a/ b/
index 2f26c04..27f7d20 100644
--- a/
+++ b/
@@ -126,10 +126,8 @@
     return 1
   alert "Running postinst for $rootdev..."
-  # TODO(hungte) We need to find a way to tell postinst there's no need to
-  # update firmware. That options was "--noupdate_firmware" but removed after
-  # postinst is replaced by cros_installer.
-  IS_INSTALL=1 "$mount_point"/postinst "$rootdev" ||
+  # IS_FACTORY_INSTALL is used to prevent postinst trying to update firmare.
+  IS_FACTORY_INSTALL=1 IS_INSTALL=1 "$mount_point"/postinst "$rootdev" ||
   umount -f "$mount_point" ||
     alert "WARNING: Failed to unmount partition $rootdev"