Michael Stapelberg
0daf1b1ae4
packer: stop using tlsflag global state
2025-12-08 21:32:59 +01:00
Michael Stapelberg
52cab9f145
packer: stop using updateflag global state
...
related to https://github.com/gokrazy/tools/pull/68
2025-12-06 08:37:24 +01:00
Michael Stapelberg
d588a72286
integration: start QEMU VM for 'gok update' test
...
related to https://github.com/gokrazy/tools/pull/94
2025-11-29 09:56:11 +01:00
Michael Stapelberg
50ceea79c7
internal/packer: apply BootloaderExtraEEPROM
...
related to https://github.com/gokrazy/gokrazy/issues/338
2025-11-16 19:09:52 +01:00
Michael Stapelberg
19d09ffb32
switch from breml/rootcerts to x/crypto fallback bundle
...
related to https://github.com/golang/go/issues/69898
2025-09-12 09:34:42 +02:00
dependabot[bot]
8143336564
build(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.27.0 ( #93 )
...
---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
dependency-version: 0.27.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-19 10:26:58 +02:00
Michael Stapelberg
2979dc9b26
pull in latest gokrazy/updater
2025-07-05 15:59:45 +02:00
Michael Stapelberg
ab76ef531d
update to latest gokrazy/updater (now needs a context)
2025-06-01 08:57:36 +02:00
Michael Stapelberg
d145a5b689
go.mod: update to latest versions of dependencies
2025-05-30 16:58:56 +02:00
Michael Stapelberg
8ff2f69410
measure: suppress output when stdout is not a terminal
...
related to https://github.com/gokrazy/tools/issues/91
2025-05-29 15:19:04 +02:00
Michael Stapelberg
fc2e1562e8
packer: include KernelExtraArgs in the kernel cmdline
...
related to https://github.com/gokrazy/gokrazy/issues/312
2025-05-20 23:01:12 +02:00
Michael Stapelberg
4f97436034
implement Package.GoBuildEnvironment option
...
This allows setting e.g. CGO_ENABLED=1 for only specific programs.
2025-03-30 11:14:56 +02:00
Michael Stapelberg
f608e1a4d0
pull in latest gokrazy/internal
...
related to https://github.com/gokrazy/gokrazy/issues/303
2025-02-24 07:16:10 +01:00
Olivier Mengué
356b1f85aa
packer: upgrade fallback Root CA certificates ( #85 )
...
Upgrade the fallback CA certs used when running gok on non-Linux platform.
This is the Mozilla CA Certs list bundled as a Go module that must be kept up to date.
(Also gok should be rebuilt).
2025-02-23 09:32:54 +01:00
Michael Stapelberg
a5127466af
add gok ps — the output is still quite minimal
...
This command might become useful on its own in the future,
but for now mostly demonstrates how to use the gokapi package.
2025-02-22 09:05:31 +01:00
Michael Stapelberg
8bcde52fb8
go.mod: set language version to go 1.24
2025-02-14 21:32:01 +01:00
Michael Stapelberg
ef5cd4d241
pull in latest gokrazy/internal
2025-02-14 21:31:08 +01:00
Michael Stapelberg
30b9fe0c81
pull in latest golang.org/x/mod for tools directive
...
fixes https://github.com/gokrazy/gokrazy/issues/298
2025-02-12 17:19:15 +01:00
Michael Stapelberg
5f4d95c2d4
gok: apply Environment from config.json
...
For gok vm run, this means an explicit -arch=amd64 or -arch=arm64
might become necessary. In general, I recommend configuring
GOOS and GOARCH in config.json explicitly:
{
"Hostname": "repro",
"Environment": [
"GOOS=linux",
"GOARCH=amd64"
],
[…]
related to https://github.com/gokrazy/gokrazy/issues/191
2025-01-26 22:43:19 +01:00
Michael Stapelberg
d9a4bf387a
update gokrazy/internal: fix bootloader 15/16 MB kernel size limit
...
related to https://github.com/gokrazy/gokrazy/issues/248
2024-08-27 21:09:36 +02:00
Anup Chenthamarakshan
fe5fe168ac
Support non-default FirstPartitionOffsetSectors ( #70 )
...
Support devices that require non-default space before the first partition
starts (4MiB). Required to enable booting Rock64 devices
2024-07-04 17:50:25 +02:00
Michael Stapelberg
41f11fbe3a
pull in latest gokrazy/internal for default kernel switch
...
related to https://github.com/gokrazy/gokrazy/issues/223
2024-06-23 11:10:41 +02:00
Michael Stapelberg
efa3f22802
packer: prevent accidental overwrites on boot partition
...
related to https://github.com/gokrazy/gokrazy/issues/264
Currently, both the gokrazy/firmware and the gokrazy/kernel.rpi repository
contain an overlays directory. The desired state is that only gokrazy/kernel.rpi
contains an overlays directory, as that is the repository from which the
overlays are built (whereas the are only copied into the firmware repository).
To prevent confusion between different versions, the packer now returns an error
instead of silently overwriting files on the boot partition when there are
multiple sources for a file.
2024-06-23 10:34:02 +02:00
Brad Fitzpatrick
ee071a0b95
internal/packer: use new UpdateOpts.NoPassword ( #69 )
...
Updates gokrazy/gokrazy#265
Updates tailscale/tailscale#1866
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2024-06-09 10:38:39 +02:00
Michael Stapelberg
f7be03f9cb
create mount device targets in /mnt
...
related to https://github.com/gokrazy/gokrazy/issues/236
2024-05-10 19:03:19 +02:00
Michael Stapelberg
06656d4340
bump language version to go 1.21 (oldest supported release)
2024-05-10 17:46:08 +02:00
Michael Stapelberg
d7eafaef08
write BootloaderExtraLines to config.txt
...
related to https://github.com/gokrazy/gokrazy/issues/216
2023-12-15 15:19:30 +01:00
Michael Stapelberg
aa3507219c
pull in latest gokrazy/internal for FAT writer fix
2023-12-15 08:58:53 +01:00
Michael Stapelberg
dceb56ee39
pull in gokrazy/internal for updateflag.BaseURL change
2023-10-31 19:32:10 +01:00
Damiano Donati
84fe9d9358
fix: rerun go mod tidy ( #65 )
2023-10-22 13:11:07 +02:00
Damiano Donati
84c24f75e1
fix sbom generation inconsistency ( #61 )
...
prior to this commit SBOMs would have inconsistency in their hashing on
the configuration file.
The representation of the config file in fact would differ at certain
stages of the gok commands lifecycle, where at packer running time,
an extra InternalCompatibilityFlag, Sudo, would be added in memory
(while that not being the case at `gok sbom` time),
resulting in a differing config and as such differing SBOM hashes, same
goes for the differing pointer addresses that were skew the hashing
results.
This is now fixed by using the SudoOrDefault() accessor,
as well as converting the config into a string before computing the hash,
to avoid differing pointer problems.
2023-10-11 17:46:50 +02:00
Michael Stapelberg
d4eaa23f35
bump x/mod to work with go1.21rc1
2023-06-24 19:26:03 +02:00
Michael Stapelberg
69473ec010
pull in latest gokrazy/internal
...
fixes https://github.com/gokrazy/tools/issues/50
2023-03-13 08:50:33 +01:00
Michael Stapelberg
2b2e2d9f24
gok: fix serial console default
2023-02-28 22:11:43 +01:00
Michael Stapelberg
c3d23a7a91
go get -u
2023-02-25 16:28:25 +01:00
dependabot[bot]
d5d8832eb9
Bump golang.org/x/sys from 0.0.0-20210820121016-41cdb8703e55 to 0.1.0 ( #48 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.0.0-20210820121016-41cdb8703e55 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 16:27:12 +01:00
Michael Stapelberg
abef3a8e0b
skip Raspberry Pi 4 EEPROM updates when the version is unchanged
...
This shaves about 10s off of the `gok update` time.
2023-02-15 18:29:25 +01:00
Michael Stapelberg
9dac24b62d
pull in latest gokrazy/internal for instance flag default from $PWD
2023-02-11 18:15:45 +01:00
Michael Stapelberg
b4784d268c
pull in latest gokrazy/updater for Divert() fallback fix
2023-02-06 23:05:40 +01:00
Mark Drayton
b369a67fef
pull in latest gokrazy/updater for gok run flag passing
2023-02-06 20:54:01 +01:00
Michael Stapelberg
2ab27fd29e
pull in latest gokrazy/internal
...
related to https://github.com/gokrazy/tools/issues/47
2023-02-06 08:44:32 +01:00
Michael Stapelberg
f9ec9d9abf
pull in latest gokrazy/internal
...
related to https://github.com/gokrazy/gokrazy/issues/167
2023-02-05 16:04:18 +01:00
Michael Stapelberg
86691439bf
drop github.com/gokrazy/gokrazy dependency
...
This should not make a difference with Go modules enabled,
which should be the case for all running gokrazy installations.
2023-01-29 19:42:57 +01:00
Michael Stapelberg
5499f548a3
pull in latest gokrazy/internal for httpclient.For fix
2023-01-22 18:31:59 +01:00
Michael Stapelberg
d5f9cee29d
gok: use config.NewStruct()
...
related to https://github.com/gokrazy/tools/issues/43
2023-01-17 19:05:43 +01:00
Michael Stapelberg
bdb14f7080
use new httpclient.For() instead of GetHTTPClientForInstance()
2023-01-15 16:41:49 +01:00
Michael Stapelberg
c61213349c
provide a programmatic entry point to the gok CLI
...
This interfaces with spf13/cobra without typing ourselves to its types, and
exerting control (for better of for worse) about what aspects one can control.
With this, we can move the code in cmd to internal/
2023-01-15 15:55:51 +01:00
Michael Stapelberg
8c217798be
pull in latest gokrazy/internal
2023-01-14 09:12:25 +01:00
Michael Stapelberg
8471dd27bc
internal: pull cert.pem/key.pem fix
2023-01-07 18:50:11 +01:00
Michael Stapelberg
41ef295683
pull in latest gokrazy/internal
2023-01-07 18:50:11 +01:00