We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a21a9c commit 95537d5Copy full SHA for 95537d5
1 file changed
templates/centos.Dockerfile
@@ -9,8 +9,6 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
9
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
10
{{ end }}
11
12
-RUN yum update -y
13
-
14
# See https://bugzilla.redhat.com/show_bug.cgi?id=1917213
15
RUN yum install -y \
16
kernel \
@@ -41,8 +39,8 @@ RUN dracut --no-hostonly --regenerate-all --force
41
39
42
40
{{- if not .Grub }}
43
RUN cd /boot && \
44
- mv $(find {{ if le $version 8 }}.{{ else }}/{{ end }} -name 'vmlinuz*') /boot/vmlinuz && \
45
- mv $(find . -name 'initramfs-*.img') /boot/initrd.img
+ mv $(find / -name 'vmlinuz*') /boot/vmlinuz && \
+ mv $(find . -name 'initramfs-*.img' -o -name initrd) /boot/initrd.img
46
{{- end }}
47
48
RUN yum clean all && \
0 commit comments