mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-22 15:56:24 +00:00
d2vm: fix CentOS install
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
8538bb0521
commit
a40b7d3c07
@ -32,16 +32,13 @@ Working and tested:
|
|||||||
- [x] Ubuntu
|
- [x] Ubuntu
|
||||||
- [x] Debian
|
- [x] Debian
|
||||||
- [x] Alpine
|
- [x] Alpine
|
||||||
|
- [x] CentOS
|
||||||
Need fix:
|
|
||||||
|
|
||||||
- [ ] CentOS
|
|
||||||
|
|
||||||
Unsupported:
|
Unsupported:
|
||||||
|
|
||||||
- [ ] RHEL
|
- [ ] RHEL
|
||||||
|
|
||||||
The program use the `/etc/os-release` file to discover the Linux distribution and install the Kernel,
|
The program uses the `/etc/os-release` file to discover the Linux distribution and install the Kernel,
|
||||||
if the file is missing, the build cannot succeed.
|
if the file is missing, the build cannot succeed.
|
||||||
|
|
||||||
Obviously, **Distroless** images are not supported.
|
Obviously, **Distroless** images are not supported.
|
||||||
|
@ -7,7 +7,10 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
|
|||||||
|
|
||||||
RUN yum update -y
|
RUN yum update -y
|
||||||
|
|
||||||
RUN yum install -y kernel systemd sudo
|
RUN yum install -y kernel systemd NetworkManager e2fsprogs sudo && \
|
||||||
|
systemctl enable NetworkManager && \
|
||||||
|
systemctl unmask systemd-remount-fs.service && \
|
||||||
|
systemctl unmask getty.target
|
||||||
|
|
||||||
RUN dracut --no-hostonly --regenerate-all --force && \
|
RUN dracut --no-hostonly --regenerate-all --force && \
|
||||||
cd /boot && \
|
cd /boot && \
|
||||||
|
Loading…
Reference in New Issue
Block a user