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

Unified Diff: kernel_fetcher.sh

Issue 4027001: kernel_fetcher.sh: use ro for rootfs.image (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: kernel_fetcher.sh
diff --git a/kernel_fetcher.sh b/kernel_fetcher.sh
index 166fe591583f3cff3a0a80d2fbc0663acb65238f..e85566a8b56cd8bb9916fe387100bf3227aeb151 100755
--- a/kernel_fetcher.sh
+++ b/kernel_fetcher.sh
@@ -47,7 +47,7 @@ trap do_cleanup EXIT
#
echo "Fetching kernel from root image..."
mkdir /tmp/kernel_fetch.$$
-sudo mount -o loop "${FLAGS_from}/rootfs.image" /tmp/kernel_fetch.$$
+sudo mount -o ro,loop "${FLAGS_from}/rootfs.image" /tmp/kernel_fetch.$$
echo "Writing kernel to ${FLAGS_to} at ${FLAGS_offset}..."
sudo "${SCRIPTS_DIR}"/file_copy.py \
« 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