Skip to content

Commit 95537d5

Browse files
committed
centos: do not upgrade packages
close #71 Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
1 parent 8a21a9c commit 95537d5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

templates/centos.Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
99
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
1010
{{ end }}
1111

12-
RUN yum update -y
13-
1412
# See https://bugzilla.redhat.com/show_bug.cgi?id=1917213
1513
RUN yum install -y \
1614
kernel \
@@ -41,8 +39,8 @@ RUN dracut --no-hostonly --regenerate-all --force
4139

4240
{{- if not .Grub }}
4341
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
42+
mv $(find / -name 'vmlinuz*') /boot/vmlinuz && \
43+
mv $(find . -name 'initramfs-*.img' -o -name initrd) /boot/initrd.img
4644
{{- end }}
4745

4846
RUN yum clean all && \

0 commit comments

Comments
 (0)