2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-04-20 01:27:40 +00:00

when multiple kernels and initrds exist, use the latest

This commit is contained in:
edgood1 2025-03-01 14:23:18 -05:00 committed by Adphi
parent d8ee37833e
commit dfd4d7dd43
2 changed files with 4 additions and 4 deletions

View File

@ -71,8 +71,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
# needs to be after update-initramfs # needs to be after update-initramfs
{{- if not .Grub }} {{- if not .Grub }}
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \ RUN mv $(ls -t /boot/vmlinuz-* | head -n 1) /boot/vmlinuz && \
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img mv $(ls -t /boot/initrd.img-* | head -n 1) /boot/initrd.img
{{- end }} {{- end }}
RUN apt-get clean && \ RUN apt-get clean && \

View File

@ -62,8 +62,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cr
# needs to be after update-initramfs # needs to be after update-initramfs
{{- if not .Grub }} {{- if not .Grub }}
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \ RUN mv $(ls -t /boot/vmlinuz-* | head -n 1) /boot/vmlinuz && \
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img mv $(ls -t /boot/initrd.img-* | head -n 1) /boot/initrd.img
{{- end }} {{- end }}
RUN apt-get clean && \ RUN apt-get clean && \