2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-11-25 17:16:25 +00:00

d2vm: remove non working rhel support

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2022-04-21 21:31:57 +02:00
parent 1a97b45861
commit fa3a4f6039
Signed by: adphi
GPG Key ID: F2159213400E50AB
4 changed files with 10 additions and 4 deletions

View File

@ -28,7 +28,11 @@ Working and tested:
Need fix: Need fix:
- [ ] CentOS / RHEL - [ ] CentOS
Unsupported:
- [ ] RHEL
The program use the `/etc/os-release` file to discover the Linux distribution and install the Kernel, The program use 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.

View File

@ -333,7 +333,7 @@ func (b *builder) installKernel(ctx context.Context) error {
sysconfig = syslinuxCfgDebian sysconfig = syslinuxCfgDebian
case ReleaseAlpine: case ReleaseAlpine:
sysconfig = syslinuxCfgAlpine sysconfig = syslinuxCfgAlpine
case ReleaseCentOS, ReleaseRHEL: case ReleaseCentOS:
sysconfig = syslinuxCfgCentOS sysconfig = syslinuxCfgCentOS
default: default:
return fmt.Errorf("%s: distribution not supported", b.osRelease.ID) return fmt.Errorf("%s: distribution not supported", b.osRelease.ID)

View File

@ -63,7 +63,7 @@ func NewDockerfile(release OSRelease, img, password string) (Dockerfile, error)
d.tmpl = ubuntuDockerfileTemplate d.tmpl = ubuntuDockerfileTemplate
case ReleaseAlpine: case ReleaseAlpine:
d.tmpl = alpineDockerfileTemplate d.tmpl = alpineDockerfileTemplate
case ReleaseCentOS, ReleaseRHEL: case ReleaseCentOS:
d.tmpl = centOSDockerfileTemplate d.tmpl = centOSDockerfileTemplate
default: default:
return Dockerfile{}, fmt.Errorf("unsupported distribution: %s", release.ID) return Dockerfile{}, fmt.Errorf("unsupported distribution: %s", release.ID)

View File

@ -46,8 +46,10 @@ func (r Release) Supported() bool {
return true return true
case ReleaseAlpine: case ReleaseAlpine:
return true return true
case ReleaseCentOS, ReleaseRHEL: case ReleaseCentOS:
return true return true
case ReleaseRHEL:
return false
default: default:
return false return false
} }