Chris Irrgang
5673ee1bfb
Update kernel config test hashes
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
dadefbc5eb
Fix kernel config test for 6.12.x
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
5f0b5f292e
Update remaining hashes in tests manually
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
17e9b4412b
Update kernel versions/hashes
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
ffd4a12ba2
Enable CONFIG_INET_DIAG_DESTROY
...
GH-4167
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
c5d422c9d7
Fix kernel show-tags output
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
07231ef799
Add new kernel tests
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
2e3df6e42b
Configure EIF boot/stub
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
1200d24201
Add kernel apparmor support
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Chris Irrgang
be7c483e17
Create new kernel series 6.12.x
...
Signed-off-by: Chris Irrgang <chris.irrgang@gmx.de >
2025-10-26 14:09:16 +02:00
Paul Gaiduk
d94f2e9095
Fix Go formatting issues to pass make local-check
...
Applied gofmt -s -w to fix formatting issues in pkglib/build.go that
were causing the make local-check target to fail during the gofmt step.
Signed-off-by: Paul Gaiduk <paulg@zededa.com >
2025-10-03 12:35:12 +03:00
Paul Gaiduk
47d5c89132
Fix cache import failing when reading from stdin
...
The cache import command was not properly handling stdin input,
treating "-" as filename, causing failures when piping data.
This commit fixes the stdin handling logic.
Signed-off-by: Paul Gaiduk <paulg@zededa.com >
2025-10-03 12:35:12 +03:00
Avi Deitcher
a8cf7dabec
fix build when pulling from non-default registry
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-09-25 13:47:38 +03:00
Avi Deitcher
4c81a1408b
do full releases, not draft
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-09-16 16:34:22 +03:00
Christoph Ostarek
43200ea634
pkglib: untangle WithBuildDocker and DryRun
...
this makes it possible for a user of this API to
build their own DryRunner
also make newDockerRunner public as well to be consistent
Signed-off-by: Christoph Ostarek <christoph@zededa.com >
v1.8.2
2025-09-15 15:49:40 +03:00
Christoph Ostarek
bb0cf49975
pkglib/build: make dockerRunner public
...
there is already a public method "WithBuildDocker",
so it makes sense that the parameter definition is public as well
so that a user of this method can actually use it
Signed-off-by: Christoph Ostarek <christoph@zededa.com >
2025-09-15 15:49:40 +03:00
Avi Deitcher
2ed6850397
when comparing builder config files, ensure only compare post-processed
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-09-14 10:20:55 +03:00
Avi Deitcher
a755fd917d
validate linuxkit yaml for unknown fields
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-09-05 15:12:54 +02:00
Avi Deitcher
358803fcc7
validate yaml for extraneous fields in pkg build
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-09-05 15:12:54 +02:00
Christoph Ostarek
9da6903609
cache/provider: use lock correctly
...
even checking if the file-lock object is non-nil needs
to be guarded with the lock
`go test -race` output:
```
==================
WARNING: DATA RACE
Read at 0x00c0005283f0 by goroutine 17:
github.com/linuxkit/linuxkit/src/cmd/linuxkit/cache.(*Provider).Lock()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/cache/provider.go:57 +0x55
github.com/linuxkit/linuxkit/src/cmd/linuxkit/cache.(*Provider).Index()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/cache/provider.go:47 +0x47
github.com/linuxkit/linuxkit/src/cmd/linuxkit/cache.(*Provider).FindDescriptor()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/cache/find.go:86 +0x46
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.(*dockerRunnerImpl).build()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/dockerimpl.go:683 +0x2a90
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.(*dockerRunnerImpl).builder()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/dockerimpl.go:245 +0x748
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.(*dockerRunnerImpl).build()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/dockerimpl.go:507 +0xec
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.Pkg.buildArch()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/build.go:718 +0x13cf
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.Pkg.Build()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/build.go:495 +0x4b64
bpftrace-compiler.(*imageBuilder).buildPkgs()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild.go:150 +0xf2d
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.WalkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:400 +0x89
bpftrace-compiler.hashDir()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/util.go:103 +0x2ae
bpftrace-compiler.(*imageBuilder).buildPkgs()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild.go:96 +0x144
bpftrace-compiler.TestCreateMobyConfig()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild_test.go:14 +0x26f
testing.tRunner()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1792 +0x225
testing.(*T).Run.gowrap1()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1851 +0x44
Previous write at 0x00c0005283f0 by goroutine 65:
github.com/linuxkit/linuxkit/src/cmd/linuxkit/cache.(*Provider).Lock()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/cache/provider.go:67 +0x2da
github.com/linuxkit/linuxkit/src/cmd/linuxkit/cache.(*Provider).ImageLoad()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/cache/write.go:157 +0x279
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.Pkg.buildArch.func2()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/build.go:697 +0x86
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/runner/go/pkg/mod/golang.org/x/sync@v0.16 .0/errgroup/errgroup.go:93 +0x91
Goroutine 17 (running) created at:
testing.(*T).Run()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1851 +0x8f2
testing.runTests.func1()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:2279 +0x85
testing.tRunner()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1792 +0x225
testing.runTests()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:2277 +0x96c
testing.(*M).Run()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:2142 +0xeea
main.main()
_testmain.go:69 +0x164
Goroutine 65 (running) created at:
golang.org/x/sync/errgroup.(*Group).Go()
/home/runner/go/pkg/mod/golang.org/x/sync@v0.16 .0/errgroup/errgroup.go:78 +0x124
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.Pkg.buildArch()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/build.go:696 +0xb05
github.com/linuxkit/linuxkit/src/cmd/linuxkit/pkglib.Pkg.Build()
/home/runner/go/pkg/mod/github.com/linuxkit/linuxkit/src/cmd/linuxkit@v0.0.0-20250829112740-179f74ac245b/pkglib/build.go:495 +0x4b64
bpftrace-compiler.(*imageBuilder).buildPkgs()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild.go:150 +0xf2d
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:310 +0x84
path/filepath.walkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:332 +0x39e
path/filepath.WalkDir()
/opt/hostedtoolcache/go/1.24.6/x64/src/path/filepath/path.go:400 +0x89
bpftrace-compiler.hashDir()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/util.go:103 +0x2ae
bpftrace-compiler.(*imageBuilder).buildPkgs()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild.go:96 +0x144
bpftrace-compiler.TestCreateMobyConfig()
/home/runner/work/eve/eve/eve-tools/bpftrace-compiler/pkgbuild_test.go:14 +0x26f
testing.tRunner()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1792 +0x225
testing.(*T).Run.gowrap1()
/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1851 +0x44
==================
```
Signed-off-by: Christoph Ostarek <christoph@zededa.com >
v1.8.1
2025-09-03 11:04:39 +03:00
christoph-zededa
179f74ac24
pkglib/git: remove trailing spaces of GOPKGVERSION ( #4164 )
...
this makes `--dry-run` inconvenient as it includes a newline
Signed-off-by: Christoph Ostarek <christoph@zededa.com >
2025-08-29 14:27:40 +03:00
Avi Deitcher
41cafa3cc3
bump runc to v1.3.0 and containerd to v2.1.4 ( #4165 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
pkg-v1.2.0
v1.8.0
2025-08-28 21:05:06 +03:00
Avi Deitcher
8d19b25408
add support for pkg build dry-run ( #4163 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-28 13:35:52 +03:00
Avi Deitcher
c3228fb526
erofs output ( #4162 )
...
* add erofs as output option
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* unify nearly identical functions
Signed-off-by: Avi Deitcher <avi@deitcher.net >
---------
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-28 10:34:53 +03:00
Avi Deitcher
506d11f06d
bump alpine; add erofs-utils package ( #4161 )
...
* bump alpine to 3.22; include erofs-utils
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* tools/alpine: Update to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* tools: Update to the latest linuxkit/alpine
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* Update use of tools to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* Update use of test packages to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* pkgs: Update packages to the latest linuxkit/alpine
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* fix scaleway error
Signed-off-by: Avi Deitcher <avi@deitcher.net >
---------
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-27 19:07:26 +03:00
Avi Deitcher
5cd48735d5
update debian for binfmt ( #4159 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-14 16:35:56 +03:00
Avi Deitcher
cacc2bbb8e
simplify sharding in package tests for CI; increase to 12 shards ( #4158 )
...
* simplify sharding in package tests for CI; increase to 12 shards
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* for CI setup-go action, determine it based on go.mod file
Signed-off-by: Avi Deitcher <avi@deitcher.net >
---------
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-13 16:02:36 +03:00
Avi Deitcher
999110c6de
add support for dynamically calculated build arg sets ( #4156 )
2025-08-13 12:33:52 +03:00
Avi Deitcher
1caf2feffc
add support for custom build args ( #4155 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-08-11 11:58:17 +03:00
Avi Deitcher
3d9bb9a128
add support for specifying additional certificates ( #4153 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-31 19:36:10 +03:00
Avi Deitcher
1d3a8235a9
option to pull down required images from to the cache, so that buildkit never gets them over the network ( #4149 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-27 19:07:20 +03:00
Avi Deitcher
ef68e7bcd5
provide mirror support ( #4148 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-27 19:06:36 +03:00
Avi Deitcher
eae788724a
check lock when reading cache provider index ( #4147 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-21 22:14:59 +02:00
Avi Deitcher
bc44cb899c
fix registry auth ( #4146 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.7.1
2025-07-15 14:07:20 +03:00
Avi Deitcher
33ee27971d
for pkg build builder, copy config over rather than bind-mounting it ( #4145 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-13 21:18:00 +03:00
Avi Deitcher
fa246722e2
add missing CRLF in log message ( #4144 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-07-13 17:30:59 +03:00
Avi Deitcher
c0c5668116
swap 'pkg push' for 'pkg build --push', keeping 'pkg push' as deprecated but still working ( #4141 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
pkg-v1.1.0
2025-07-04 18:00:28 +03:00
Avi Deitcher
2b4687338b
add support for pkg build authentication ( #4137 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.7.0
2025-07-02 18:52:05 +03:00
Avi Deitcher
940c1b7b3b
simplify cache locking ( #4136 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.6.5
2025-06-30 20:58:50 +03:00
Daniel S.
818bccf20f
docs: Add instructions for OCI export from Docker ( #4135 )
...
Signed-off-by: Daniel Smith <daniel@razorsecure.com >
2025-06-30 16:27:54 +03:00
Avi Deitcher
50120bce2d
ensure that new index does not break on missing lock file ( #4134 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.6.4
2025-06-27 11:01:43 +03:00
Avi Deitcher
254aefc953
check for dirty tree without update-index, which is not parallel-safe ( #4133 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.6.3
2025-06-26 19:53:13 +03:00
Avi Deitcher
4df360d62d
Centralize safe cache writes ( #4132 )
...
* centralize all writing of the index.json to one place
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* create filelock utility
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* leverage file locks for cache index.json
Signed-off-by: Avi Deitcher <avi@deitcher.net >
---------
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-06-26 19:02:49 +03:00
christoph-zededa
3f54a80824
git: synchronize update-index with a mutex ( #4130 )
...
if `pkglib.NewFromConfig` is used in parallel, it calls
```
git -C /some/directory update-index -q --refresh
```
in parallel.
But `git` does not like this and exits with 128.
This can be easily tried with:
```
git -C /some/dir update-index -q --refresh & \
git -C /some/dir update-index -q --refresh
```
Signed-off-by: Christoph Ostarek <christoph@zededa.com >
v1.6.2
2025-06-25 21:59:47 +03:00
Avi Deitcher
d45d3e8c6e
more builder race condition; do restart if could not remove, and only go via container ID ( #4129 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-06-25 21:21:51 +03:00
Avi Deitcher
5a13eda661
Bump buildkit ( #4128 )
...
* bump buildkit to v0.23.1
Signed-off-by: Avi Deitcher <avi@deitcher.net >
* bump buldkit library and deps to v0.23.1
Signed-off-by: Avi Deitcher <avi@deitcher.net >
---------
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.6.1
2025-06-25 14:07:15 +03:00
Avi Deitcher
18a76198dd
pkg build: handle race condition where builder is started at same time ( #4127 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-06-25 10:09:46 +03:00
Carsten Munk
b42e1a8bab
feat: add riscv64 as supported arch ( #4124 )
...
this makes kernel+squashfs flow work for risc64
Signed-off-by: Carsten Munk <carsten@zippie.com >
2025-06-23 12:21:59 +03:00
Avi Deitcher
89a95f958e
when updating an index, remove sboms or other manifests that reference unknown digests ( #4117 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
v1.6.0
2025-05-02 13:56:37 +03:00
Avi Deitcher
7a129b6e8d
bump golangci-lint to v2.0.2 and update all lint issues ( #4116 )
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2025-04-09 17:53:20 +03:00