From ef22d8fe60bdd9f099b2743550b6aa27784813a9 Mon Sep 17 00:00:00 2001 From: Will Drewry Date: Wed, 20 Oct 2010 18:58:05 -0500 Subject: [PATCH] kernel_fetcher.sh: use ro for rootfs.image With new changes to the rootfs, if it is verified, it won't be mountable rw. Since this script just copies out a file, making it ro (instead of calling enable_rw_mount) seems to make sense. TEST=? BUG=chromium-os:7468 Change-Id: I0941e981826005cea1c70653c45c5ae2c5f5a9e0 Review URL: http://codereview.chromium.org/4027001 --- kernel_fetcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel_fetcher.sh b/kernel_fetcher.sh index 166fe59158..e85566a8b5 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 \