From e9793344e6ee9dfbda3876cdb56674beaa1fffc1 Mon Sep 17 00:00:00 2001 From: Vince Perri Date: Fri, 4 Mar 2022 23:34:00 +0000 Subject: [PATCH] Fix post-install script args in imageconfig being ignored --- toolkit/tools/imagegen/installutils/installutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/tools/imagegen/installutils/installutils.go b/toolkit/tools/imagegen/installutils/installutils.go index 67b007f4bd9..c08101f42dd 100644 --- a/toolkit/tools/imagegen/installutils/installutils.go +++ b/toolkit/tools/imagegen/installutils/installutils.go @@ -1842,7 +1842,7 @@ func runPostInstallScripts(installChroot *safechroot.Chroot, config configuratio ReportActionf("Running post-install script: %s", path.Base(script.Path)) logger.Log.Infof("Running post-install script: %s", script.Path) err = installChroot.UnsafeRun(func() error { - err := shell.ExecuteLive(squashErrors, shell.ShellProgram, "-c", scriptPath, script.Args) + err := shell.ExecuteLive(squashErrors, shell.ShellProgram, "-c", fmt.Sprintf("%s %s", scriptPath, script.Args)) if err != nil { return err