Skip to content

Commit

Permalink
operator: copy cloud-config file not its link (#468)
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Giudici <[email protected]>
  • Loading branch information
fgiudici authored Jun 20, 2023
1 parent dba9d21 commit 4f3b2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/seedimage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func fillBuildImagePod(seedImg *elementalv1.SeedImage, buildImg string, pullPoli
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{Name: configMap},
Items: []corev1.KeyToPath{
{Key: "registration", Path: "livecd-cloud-config.yaml"},
{Key: "registration", Path: "reg/livecd-cloud-config.yaml"},
{Key: "cloud-config", Path: "iso-config/cloud-config.yaml"},
},
},
Expand All @@ -589,7 +589,7 @@ func defineInitContainers(baseImg, isoName, buildImg string, pullPolicy corev1.P

containers := []corev1.Container{}
buildCommands := []string{
fmt.Sprintf("xorriso -indev %s -outdev /iso/%s -map /overlay / -boot_image any replay", baseIsoPath, isoName),
fmt.Sprintf("xorriso -indev %s -outdev /iso/%s -map /overlay/reg/livecd-cloud-config.yaml /livecd-cloud-config.yaml -map /overlay/iso-config/cloud-config.yaml /iso-config/cloud-config.yaml -boot_image any replay", baseIsoPath, isoName),
fmt.Sprintf("rm -rf %s", baseIsoPath),
}

Expand Down

0 comments on commit 4f3b2c5

Please sign in to comment.