Add new make option LOG_COLOR with options auto (default), always, never. 'always' colors both terminal output and logs; 'auto' colors only terminal output; 'never' disables color in both.
This change extends the `AdditionalFiles` field of the image system config to support copying to multiple destination files and changing the file permissions of the destination files.
Changes:
- Change `AdditionalFiles` to an array of `FileConfig` structs and add support for changing the destination file permissions.
- Add a custom [un]marshaler for `AdditionalFiles` so that the existing schema is still supported.
- Extend and add new image configuration tests to cover the new options for `AdditionalFiles`.
- Add a test for `installutils` to verify file copying behavior during image builds.
Rename `microsoft.com/pkggen` -> `github.com/microsoft.com/CBL-Mariner/toolkit/tools` to
enable `go get`
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
* fix ptest
* save changes
* save partition changes
* save changes for parser
* save the changes
* revert unnecessary changes
* update parser
* commit parser changes
* save current set of changes
* add prescript entry in imageconfig json
* format go file
* modify test_configuration.json
* fix partition flag
* fix comments
* remove debugging lines
* include change for prescript
* check change
* save changes
* modify isomaker to copy preinstall scripts and clean up code
* clean-up code
* remove unnecessary files
* remove test files
* fix go test coverage failure
* resolve merge error
* update changes and merge with main
* Delete test-image.sh
* Delete parse_partition_test.go
* fix config validation after parsing
* add flag in systemconfig to indicate kickstart installation
* fix go formatting error
* address comments and add unit-tesing
* fix go formatting error
* address comments
* fix go formatting error
* resolve comments and update doc
* fix gor formatting
Co-authored-by: Henry Li <lihl@microsoft.com>
* Add support to build Arm64 ISO for CBL-Mariner
* Add support to build Arm64 ISO for CBL-Mariner
* Add support to build Arm64 ISO for CBL-Mariner
* Update to build_arch in imggen make file
* Repetition removal suggestions. (#378)
Repetition removal suggestions.
Co-authored-by: schalam <schalam@microsoft.com>
Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>