mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-04-20 09:37:40 +00:00
when multiple kernels and initrds exist, use the latest
This commit is contained in:
parent
d8ee37833e
commit
dfd4d7dd43
@ -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 && \
|
||||||
|
@ -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 && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user