This commit is contained in:
Родитель
3627b06043
Коммит
8d9d99c99b
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче