Skip to content

Commit

Permalink
[sonic-aboot]: restore docker archive on arista platform (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Feb 5, 2017
1 parent 7c2c5f7 commit 8bc559e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions files/Aboot/boot0
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ extract_image() {

## Unzip the image
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() {
Expand Down

0 comments on commit 8bc559e

Please sign in to comment.