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

Unified Diff: chromeos-install

Issue 5122002: installer: fix the "umount: XXX not mounted" error message during postinst (Closed) Base URL: http://git.chromium.org/git/installer.git@master
Patch Set: add sync for losetup -d after mkfs.ext3 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 | chromeos-setimage » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-install
diff --git a/chromeos-install b/chromeos-install
index 8cd1a31e43a23d013f27c4b5b96fca04fef22640..6fe82e022b50e05ea19894b85d5a73363ce809b0 100755
--- a/chromeos-install
+++ b/chromeos-install
@@ -452,6 +452,9 @@ if [ "${FLAGS_preserve_stateful}" -eq "${FLAGS_FALSE}" ]; then
loop_offset_setup $DST $START_STATEFUL
sudo mkfs.ext3 -F -b 4096 -L "H-STATE" ${LOOP_DEV} \
$(($NUM_STATEFUL_SECTORS / 8))
+ # Need to synchronize before releasing loop device, otherwise the losetup -d
+ # may get device busy.
+ sync
loop_offset_cleanup
fi
« no previous file with comments | « no previous file | chromeos-setimage » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698