[sonic-aboot]: restore docker archive on arista platform (#261)

This commit is contained in:
lguohan 2017-02-04 22:32:45 -08:00 committed by GitHub
parent 7c2c5f7f42
commit 8bc559ecca

View File

@ -46,6 +46,15 @@ extract_image() {
## Unzip the image ## Unzip the image
unzip -oq "$swipath" -x boot0 -d "$target_path" unzip -oq "$swipath" -x boot0 -d "$target_path"
## Clean old directory for docker
rm -rf "$target_path/var/lib/docker"
## Further extract docker archive
tar xf "$target_path/dockerfs.tar.gz" -C "$target_path"
## clean up docker archive
rm -f "$target_path/dockerfs.tar.gz"
} }
write_machine_config() { write_machine_config() {