TBR: Missed last commit for image_to_live in last push

This commit is contained in:
Chris Sosa 2010-04-27 15:48:09 -07:00
parent 9cc8f95a65
commit 48768d8763

View File

@ -31,7 +31,7 @@ function cleanup {
echo "Killing dev server."
kill_all_devservers
cleanup_remote_access
. "$(dirname $0)/mount_gpt_image.sh" -mu
./mount_gpt_image.sh -mu
rm -rf "${TMP}"
}
@ -58,20 +58,21 @@ function start_dev_server {
function copy_stateful_tarball {
echo "Starting stateful update."
# Mounts most recent image stateful dir to /tmp/s
. "$(dirname $0)/mount_gpt_image.sh" -m
./mount_gpt_image.sh -m
# Create tar files for the stateful partition.
cd /tmp/s/var && sudo tar -cf /tmp/var.tar . && cd -
cd /tmp/s/dev_image && sudo tar -cf /tmp/developer.tar . && cd -
# Copy over tar files.
remote_cp /tmp/var.tar /tmp
remote_cp /tmp/developer.tar /tmp
remote_sh "mkdir /mnt/stateful_partition/var_new |\
mkdir /mnt/stateful_partition/dev_image_new |\
tar -xf /tmp/var.tar -C /mnt/stateful_partition/var_new |\
remote_sh "mkdir /mnt/stateful_partition/var_new &&\
mkdir /mnt/stateful_partition/dev_image_new &&\
tar -xf /tmp/var.tar -C /mnt/stateful_partition/var_new &&\
tar -xf /tmp/developer.tar \
-C /mnt/stateful_partition/dev_image_new"
-C /mnt/stateful_partition/dev_image_new &&\
touch /mnt/stateful_partition/.update_available"
# unmounts stateful partition
. "$(dirname $0)/mount_gpt_image.sh" -mu
./mount_gpt_image.sh -mu
}
function prepare_update_metadata {