remove fsroot after build (#228)

This commit is contained in:
lguohan 2017-01-31 22:05:24 -08:00 committed by GitHub
parent 5278f1a0e5
commit c2b4c870c6

View File

@ -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