2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2026-01-24 02:25:04 +00:00

centos: do not upgrade packages

close #71

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2026-01-21 20:36:27 +01:00
parent 8a21a9cee8
commit 95537d5d2f

View File

@@ -9,8 +9,6 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
{{ end }}
RUN yum update -y
# See https://bugzilla.redhat.com/show_bug.cgi?id=1917213
RUN yum install -y \
kernel \
@@ -41,8 +39,8 @@ RUN dracut --no-hostonly --regenerate-all --force
{{- if not .Grub }}
RUN cd /boot && \
mv $(find {{ if le $version 8 }}.{{ else }}/{{ end }} -name 'vmlinuz*') /boot/vmlinuz && \
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
{{- end }}
RUN yum clean all && \