Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Unified Diff: src/platform/memento_softwareupdate/memento_updater.sh

Issue 2366001: Pack firmware into an image and do update in factory install process. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: add 2 emtpy firmware images Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/firmware/x86-generic/system_rom.bin ('k') | src/scripts/make_factory_package.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/memento_softwareupdate/memento_updater.sh
diff --git a/src/platform/memento_softwareupdate/memento_updater.sh b/src/platform/memento_softwareupdate/memento_updater.sh
index b39a3ce0fb23aa51fa36c8f6514542033e3dbe78..d5ff4478e4dfadc0014534aa4fc58025c6d92a42 100755
--- a/src/platform/memento_softwareupdate/memento_updater.sh
+++ b/src/platform/memento_softwareupdate/memento_updater.sh
@@ -175,7 +175,7 @@ then
log "didnt find good local device. local: $LOCAL_DEV install: $INSTALL_DEV"
exit 1
fi
-if [ ! -b "$INSTALL_DEV" ]
+if [ ! -b "$INSTALL_DEV" -a ! "${FLAGS_force_track}" = "firmware-channel" ]
then
log "didnt find good install device. local: $LOCAL_DEV install: $INSTALL_DEV"
exit 1
@@ -320,6 +320,15 @@ if [ $FLAGS_skip_postinst -eq $FLAGS_FALSE ]; then
# postinstall on new partition succeeded.
fi
+if [ "${FLAGS_force_track}" = "firmware-channel" ]; then
+ log execute firmware-install script
+ INSTALL_SCRIPT="${FLAGS_dst_partition}"
+ chmod +x "${INSTALL_SCRIPT}"
+ pushd "$(dirname "${INSTALL_SCRIPT}")" > /dev/null
+ eval "${INSTALL_SCRIPT}" >> "$MEMENTO_AU_LOG"
+ popd > /dev/null
+fi
+
if [ -z "${FLAGS_dst_partition}" ]; then
# mark update as complete so we don't try to update again
touch "$UPDATED_COMPLETED_FILE"
« no previous file with comments | « src/platform/firmware/x86-generic/system_rom.bin ('k') | src/scripts/make_factory_package.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698