From c2b4c870c682f5868faea536545dac313e301d95 Mon Sep 17 00:00:00 2001 From: lguohan Date: Tue, 31 Jan 2017 22:05:24 -0800 Subject: [PATCH] remove fsroot after build (#228) --- build_debian.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index 11d8217ff8..d79a05275b 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -271,3 +271,6 @@ pushd $FILESYSTEM_ROOT && sudo tar czf $OLDPWD/$FILESYSTEM_DOCKERFS var/lib/dock ## Compress together with /boot and /var/lib/docker as an installer payload zip file pushd $FILESYSTEM_ROOT && sudo zip $OLDPWD/$ONIE_INSTALLER_PAYLOAD -r boot/; popd sudo zip -g $ONIE_INSTALLER_PAYLOAD $FILESYSTEM_SQUASHFS $FILESYSTEM_DOCKERFS + +## Remove fsroot +sudo rm -rf $FILESYSTEM_ROOT