mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
TBR: Missed last commit for image_to_live in last push
This commit is contained in:
parent
9cc8f95a65
commit
48768d8763
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user