Skip to content

Commit 7e32502

Browse files
vinceaperrijslobodzian
authored andcommitted
Fix post-install script args in imageconfig being ignored (#2414)
1 parent b3f20d3 commit 7e32502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolkit/tools/imagegen/installutils/installutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ func runPostInstallScripts(installChroot *safechroot.Chroot, config configuratio
18421842
ReportActionf("Running post-install script: %s", path.Base(script.Path))
18431843
logger.Log.Infof("Running post-install script: %s", script.Path)
18441844
err = installChroot.UnsafeRun(func() error {
1845-
err := shell.ExecuteLive(squashErrors, shell.ShellProgram, "-c", scriptPath, script.Args)
1845+
err := shell.ExecuteLive(squashErrors, shell.ShellProgram, "-c", fmt.Sprintf("%s %s", scriptPath, script.Args))
18461846

18471847
if err != nil {
18481848
return err

0 commit comments

Comments
 (0)