build initramfs only for current linux-image version
This commit is contained in:
parent
e9930978f0
commit
6f07229747
1 changed files with 1 additions and 1 deletions
|
|
@ -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-//')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue