build initramfs only for current linux-image version

This commit is contained in:
jalr 2018-02-11 17:09:05 +01:00
parent e9930978f0
commit 6f07229747

View file

@ -6,4 +6,4 @@ RUN apt-get update \
linux-image-amd64
RUN echo 'RESUME=none' > /etc/initramfs-tools/conf.d/resume \
&& mkinitramfs -o /tmp/initrd.gz
&& mkinitramfs -o /tmp/initrd.gz $(find /boot -name 'vmlinuz-*' -printf '%f\n' | sed 's/^vmlinuz-//')