diff --git a/packer/debian-stretch.json b/packer/debian-stretch.json index b5ff69b..3541681 100644 --- a/packer/debian-stretch.json +++ b/packer/debian-stretch.json @@ -4,6 +4,7 @@ "squashfs_file": "{{env `NAME`}}.squashfs", "initramfs_file": "{{env `NAME`}}.initramfs", "linux_file": "{{env `NAME`}}.linux", + "dpkg_list_file": "{{env `NAME`}}.dpkg-list", "compression_level": "{{env `COMPRESSION_LEVEL`}}", "images": "{{env `IMAGES`}}", "ci_job_id": "{{env `CI_JOB_ID`}}", @@ -96,6 +97,7 @@ "set -x", "apt-get -y install squashfs-tools", "dpkg -L squashfs-tools liblzo2-2 | while read f; do [ -f \"$f\" ] && echo \"$f\"; done > /tmp/ignore_files", + "dpkg -l > /tmp/images/{{ user `dpkg_list_file` }}", "echo '/etc/resolv.conf' >> /tmp/ignore_files", "echo '/etc/hostname' >> /tmp/ignore_files", "echo '/etc/hosts' >> /tmp/ignore_files",