diff --git a/toolkit/scripts/imggen.mk b/toolkit/scripts/imggen.mk index 213d6b5cc4..5fbd8f75b7 100644 --- a/toolkit/scripts/imggen.mk +++ b/toolkit/scripts/imggen.mk @@ -177,6 +177,7 @@ iso: $(go-isomaker) $(go-liveinstaller) $(go-imager) $(depend_CONFIG_FILE) $(CON --resources $(RESOURCES_DIR) \ --iso-repo $(local_and_external_rpm_cache) \ --log-level $(LOG_LEVEL) \ + --log-file $(LOGS_DIR)/imggen/isomaker.log \ $(if $(UNATTENDED_INSTALLER),--unattended-install) \ --output-dir $(artifact_dir) \ --image-tag=$(IMAGE_TAG) diff --git a/toolkit/tools/imagegen/configuration/configuration.go b/toolkit/tools/imagegen/configuration/configuration.go index ed5802f74a..567c03a415 100644 --- a/toolkit/tools/imagegen/configuration/configuration.go +++ b/toolkit/tools/imagegen/configuration/configuration.go @@ -208,12 +208,12 @@ func convertRawBinariesPath(baseDirPath string, diskConfig *Disk) { } func convertAdditionalFilesPath(baseDirPath string, systemConfig *SystemConfig) { + absAdditionalFiles := make(map[string]string) for localFilePath, targetFilePath := range systemConfig.AdditionalFiles { - delete(systemConfig.AdditionalFiles, localFilePath) - localFilePath = file.GetAbsPathWithBase(baseDirPath, localFilePath) - systemConfig.AdditionalFiles[localFilePath] = targetFilePath + absAdditionalFiles[localFilePath] = targetFilePath } + systemConfig.AdditionalFiles = absAdditionalFiles } func convertPackageListPaths(baseDirPath string, systemConfig *SystemConfig) { diff --git a/toolkit/tools/isomaker/maker.go b/toolkit/tools/isomaker/maker.go index 936debb881..2c9cb030f2 100644 --- a/toolkit/tools/isomaker/maker.go +++ b/toolkit/tools/isomaker/maker.go @@ -305,12 +305,12 @@ func (im *IsoMaker) copyAndRenameAdditionalFiles(configFilesAbsDirPath string) { const additionalFilesSubDirName = "additionalfiles" for _, systemConfig := range im.config.SystemConfigs { + absAdditionalFiles := make(map[string]string) for localAbsFilePath, installedSystemAbsFilePath := range systemConfig.AdditionalFiles { - delete(systemConfig.AdditionalFiles, localAbsFilePath) isoRelativeFilePath := im.copyFileToConfigRoot(configFilesAbsDirPath, additionalFilesSubDirName, localAbsFilePath) - - systemConfig.AdditionalFiles[isoRelativeFilePath] = installedSystemAbsFilePath + absAdditionalFiles[isoRelativeFilePath] = installedSystemAbsFilePath } + systemConfig.AdditionalFiles = absAdditionalFiles } }