Reduce image size

1. Remove apt lists from image content to reduce size
2. Remove unneeded "live" directory to reduce size

Change-Id: I84cceda61bd677ef99bf2aa705a717f567d126ab
This commit is contained in:
Anderson, Craig (ca846m) 2021-08-17 13:08:34 -07:00
parent 611fd18363
commit e8a054a0f7
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
- name: "clean apt lists from image"
shell:
cmd: |
rm -rf {{ root_image }}/var/lib/apt/lists/*
- name: "ensuring directory {{ root_image }}/live exists"
file:
path: "{{ root_image }}/live"
@ -21,7 +26,8 @@
"{{ root_image }}/live/filesystem.squashfs" \
-processors {{ mksquashfs_threads }} \
-comp {{ mksquashfs_compression }} \
-e boot
-e boot \
-e live
retries: 3
register: squash_result
until: squash_result is not failed