Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
nicolas guibourge 08103edbbe
Adress CodeQL issue due to rebranding (#8774)
Co-authored-by: CBL-Mariner Servicing Account <cblmargh@microsoft.com>
2024-04-12 07:14:50 -07:00
Neha Agarwal 07ec048b78
Sort, reorder and color build summary output (#6649)
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.
2024-02-02 09:52:50 -08:00
Chris Gunn 5e1c5ac837
Extend `AdditionalFiles` config (#5907)
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.
2023-08-08 15:43:23 -07:00
Neha Agarwal a979cecf9e
Add initial support for finalizeImage (#3815)
* Add initial support for finalizeImage

* Add tests

* Add doc

* Improve doc
2022-09-29 13:43:42 -07:00
Henry Li 2954a840cd
[main] Add custom package repo definitions in image configuration (#2925)
* rebase to eliminate previous commits

* add imageconfigvalidator check for custom package repos

* update logic for error checking

* minor change to code structure

* fix formatting issue

* fix typo

* Update toolkit/tools/imagegen/configuration/packagerepo.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/isomaker/maker.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/internal/network/network.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/imagegen/configuration/systemconfig.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* resolve comments

* fix systemconfig validation

* fix systemconfig test

* add clean-up in unit test

* Update toolkit/tools/imagegen/configuration/packagerepo_test.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* resolve more comments

* fix go formatting error

* resolve remaining comments

* Update toolkit/tools/internal/network/network.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/internal/network/network.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* refactor network retry

* Update toolkit/tools/imagegen/configuration/packagerepo.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/imagegen/configuration/packagerepo.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* Update toolkit/tools/internal/network/network.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

* update error clean-up

* fix file clean-up error

* Update toolkit/tools/imagegen/configuration/packagerepo.go

Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>

Co-authored-by: Henry Li <lihl@microsoft.com>
Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>
2022-06-07 18:09:05 -07:00
Muhammad Falak R Wani aabee81e0a
tools: rename toolkit/tools module to enable `go get` (#2976)
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>
2022-05-11 08:59:53 +05:30
Henry Li d016bf5edd
[main] Enable kickstart partition parsing in Mariner (#2849)
* 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>
2022-05-09 16:26:29 -07:00
Thomas Crain eae5b4006f Merge branch '1.0' into thcrain/ever-given 2021-04-06 22:39:22 -05:00
Joe Schmitt a76a850170
[dev] Fix minor toolkit typos (#385) 2020-11-16 10:05:46 -05:00
chalamalasetty 7b9dcc5377
Add support to build Arm64 ISO for CBL-Mariner (#373)
* 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>
2020-11-13 16:50:24 -08:00
Joe Schmitt 33a0035ec2
Use pointer to systemconfig (#311) 2020-10-30 13:02:08 -07:00
Joe Schmitt b4a5b1e215
Fix additional files pointer usage (#310) 2020-10-30 13:02:03 -07:00
Joe Schmitt 8d9d99c99b
Prevent AdditionalFiles from being modified during iteration (#297) (#298) 2020-10-28 12:29:12 -07:00
Joe Schmitt 17874ff74a
Prevent AdditionalFiles from being modified during iteration (#297) 2020-10-28 12:03:01 -07:00
Jon Slobodzian b877013b27 Initial CBL-Mariner commit to GitHub 2020-08-06 20:17:52 -07:00