Fixed isntall command
@@ -34,7 +34,7 @@ func NewInstallCmd(log logrus.FieldLogger, db *gorm.DB, hwValidator hardware.Val
func (i *installCmd) GetStep(ctx context.Context, host *models.Host) (*models.Step, error) {
step := &models.Step{}
step.StepType = models.StepTypeExecute
- step.Command = "sudo podman"
+ step.Command = "bash"
//get openshift version
var cluster models.Cluster
@@ -48,7 +48,7 @@ func (i *installCmd) GetStep(ctx context.Context, host *models.Host) (*models.St
role = RoleBootstrap
}
- const cmdArgsTmpl = `run -v /dev:/dev:rw -v /opt:/opt:rw --privileged --pid=host {{.INSTALLER}} --role {{.ROLE}} --cluster-id {{.CLUSTER_ID}} --host {{.HOST}} --port {{.PORT}} --boot-device {{.BOOT_DEVICE}} --host-id {{.HOST_ID}} --openshift-version {{.OPENSHIFT_VERSION}}`
+ const cmdArgsTmpl = `-c "sudo podman run -v /dev:/dev:rw -v /opt:/opt:rw --privileged --pid=host {{.INSTALLER}} --role {{.ROLE}} --cluster-id {{.CLUSTER_ID}} --host {{.HOST}} --port {{.PORT}} --boot-device {{.BOOT_DEVICE}} --host-id {{.HOST_ID}} --openshift-version {{.OPENSHIFT_VERSION}}""`
t, err := template.New("cmd").Parse(cmdArgsTmpl)
if err != nil {
return nil, err
