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

Unified Diff: update_bootloaders.sh

Issue 5165001: crosutils: fix "umount: /tmp/XXX: not mounted" in build_image (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_bootloaders.sh
diff --git a/update_bootloaders.sh b/update_bootloaders.sh
index 63faaceec86343991b827c494504e83c3a74ba4e..2dbc138bbb5de66a852b44b560bcef806ef275c6 100755
--- a/update_bootloaders.sh
+++ b/update_bootloaders.sh
@@ -180,6 +180,8 @@ if [[ "${FLAGS_arch}" = "x86" ]]; then
if [[ ${FLAGS_install_syslinux} -eq ${FLAGS_TRUE} ]]; then
sudo umount "${ESP_FS_DIR}"
sudo syslinux -d /syslinux "${ESP_DEV}"
+ # mount again for cleanup to free resource gracefully
+ sudo mount -o ro "${ESP_DEV}" "${ESP_FS_DIR}"
fi
elif [[ "${FLAGS_arch}" = "arm" ]]; then
# Copy u-boot script to ESP partition
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698