aboutsummaryrefslogtreecommitdiff
path: root/96boards-b2260.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-11-17 11:54:32 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-11-17 11:54:32 +0200
commita01c2601b088051791cd7643abf3ddf78533e650 (patch)
tree4886e682298d1e74efddbfb7b97d41b0ee4b9932 /96boards-b2260.yaml
parent99d27d6eaedc94283c22e7baa3f9cf0bcf44b70e (diff)
96boards-b2260: clean up the rootfs to reduce the image size
As we mount the partitions, clean up the rootfs to reduce the image size: * /dev is re-created at the first boot * /boot is a separate partition that we mount * /var/lib/apt/lists is apt cache, not needed until we install packages and need to run apt-get update anyway. Change-Id: I52562f137fac1b390e97b3929adf0653bbd84cf1 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-b2260.yaml')
-rw-r--r--96boards-b2260.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/96boards-b2260.yaml b/96boards-b2260.yaml
index 6efc8f73..80a35fe0 100644
--- a/96boards-b2260.yaml
+++ b/96boards-b2260.yaml
@@ -128,6 +128,9 @@
sudo cp -a configs/96boards-b2260/b2260 boot/
+ sudo rm -rf rootfs/dev rootfs/boot rootfs/var/lib/apt/lists
+ sudo mkdir rootfs/dev rootfs/boot rootfs/var/lib/apt/lists
+
sudo umount boot rootfs
sudo kpartx -dv out/b2260-jessie_${rootfs}_${VERSION}.img
sudo rm -rf boot rootfs