From 8bc559eccaf1a93603825a42c72164835ecbce1d Mon Sep 17 00:00:00 2001 From: lguohan Date: Sat, 4 Feb 2017 22:32:45 -0800 Subject: [PATCH] [sonic-aboot]: restore docker archive on arista platform (#261) --- files/Aboot/boot0 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/files/Aboot/boot0 b/files/Aboot/boot0 index 79161e3380..b326f0e289 100644 --- a/files/Aboot/boot0 +++ b/files/Aboot/boot0 @@ -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() {