mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
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
This commit is contained in:
parent
f929c3012c
commit
ef22d8fe60
@ -47,7 +47,7 @@ trap do_cleanup EXIT
|
|||||||
#
|
#
|
||||||
echo "Fetching kernel from root image..."
|
echo "Fetching kernel from root image..."
|
||||||
mkdir /tmp/kernel_fetch.$$
|
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}..."
|
echo "Writing kernel to ${FLAGS_to} at ${FLAGS_offset}..."
|
||||||
sudo "${SCRIPTS_DIR}"/file_copy.py \
|
sudo "${SCRIPTS_DIR}"/file_copy.py \
|
||||||
|
Loading…
Reference in New Issue
Block a user