Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2018-08-24,backup-redmine/2019-09-14,master
commit 6151e6c55e6a724197b2a5c542d0c2ccea328c13 Author: Sven Eckelmann sven@narfation.org Date: Sun Mar 25 10:45:12 2018 +0000
doc: open-mesh/Emulation_Debug: reduce size of final image
6151e6c55e6a724197b2a5c542d0c2ccea328c13 open-mesh/Emulation_Debug.textile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/open-mesh/Emulation_Debug.textile b/open-mesh/Emulation_Debug.textile index bc6605a..a6eed86 100644 --- a/open-mesh/Emulation_Debug.textile +++ b/open-mesh/Emulation_Debug.textile @@ -35,11 +35,14 @@ sudo sed -i 's/^root:[^:]*:/root::/' debian/etc/shadow #EOF'
sudo sh -c 'echo '''PATH="$PATH":/host/batctl/''' >> debian/etc/profile' +sudo rm debian/var/cache/apt/archives/*.deb +sudo rm debian/var/lib/apt/lists/* sudo umount debian +sudo zerofree -v debian.img
## optionally: convert image to qcow2 -#sudo qemu-img convert -f raw -O qcow2 debian.img debian.qcow2 +#sudo qemu-img convert -c -f raw -O qcow2 debian.img debian.qcow2 #sudo mv debian.qcow2 debian.img </pre>