[sonic-aboot]: restore docker archive on arista platform (#261)
This commit is contained in:
parent
7c2c5f7f42
commit
8bc559ecca
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user