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:
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
|
||||
{{- if not .Grub }}
|
||||
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
||||
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
||||
RUN mv $(ls -t /boot/vmlinuz-* | head -n 1) /boot/vmlinuz && \
|
||||
mv $(ls -t /boot/initrd.img-* | head -n 1) /boot/initrd.img
|
||||
{{- end }}
|
||||
|
||||
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
|
||||
{{- if not .Grub }}
|
||||
RUN mv $(find /boot -name 'vmlinuz-*') /boot/vmlinuz && \
|
||||
mv $(find /boot -name 'initrd.img-*') /boot/initrd.img
|
||||
RUN mv $(ls -t /boot/vmlinuz-* | head -n 1) /boot/vmlinuz && \
|
||||
mv $(ls -t /boot/initrd.img-* | head -n 1) /boot/initrd.img
|
||||
{{- end }}
|
||||
|
||||
RUN apt-get clean && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user