Commit 06f5c632 by Serge Hallyn Committed by Stéphane Graber

ubuntu template: apt-get clean after debootstrapping a cache

This saves quite a bit of space in the cache and containers. See https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1037626 for the original bug report. Reported-by: 's avatarFajar A. Nugraha <list@fajar.net> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent f1ccde27
...@@ -208,6 +208,8 @@ EOF ...@@ -208,6 +208,8 @@ EOF
return 1 return 1
fi fi
chroot "$1/partial-${arch}" apt-get clean
mv "$1/partial-$arch" "$1/rootfs-$arch" mv "$1/partial-$arch" "$1/rootfs-$arch"
trap EXIT trap EXIT
trap SIGINT trap SIGINT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment