mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-02-13 12:45:50 +00:00
sysconfig: fix paths for ubuntu versions before 20.04 (fix #3)
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
0d4379946b
commit
2af13ef626
@ -324,7 +324,11 @@ func (b *builder) installKernel(ctx context.Context) error {
|
||||
var sysconfig string
|
||||
switch b.osRelease.ID {
|
||||
case ReleaseUbuntu:
|
||||
if b.osRelease.VersionID < "20.04" {
|
||||
sysconfig = syslinuxCfgDebian
|
||||
} else {
|
||||
sysconfig = syslinuxCfgUbuntu
|
||||
}
|
||||
case ReleaseDebian:
|
||||
sysconfig = syslinuxCfgDebian
|
||||
case ReleaseAlpine:
|
||||
|
Loading…
x
Reference in New Issue
Block a user