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