lordwelch
4e1975ff77
Exit on TERM
2021-01-09 15:20:47 -08:00
lordwelch
a9b2d89f29
Send USR1 on address change
2021-01-09 15:20:47 -08:00
lordwelch
a8944ecb1a
Propagate TERM signal to services
2021-01-09 15:16:47 -08:00
lordwelch
61e410ed9d
Create service home dir
2021-01-09 15:16:47 -08:00
lordwelch
69200acf90
Implement NTP server from DHCP
2021-01-09 15:16:47 -08:00
lordwelch
f60299f3ca
Add an unauthenticated test endpoint
2021-01-09 15:16:47 -08:00
andig
067330db55
Honor https-port when redirecting ( #79 )
2021-01-08 09:10:39 +01:00
andig
97987794f9
Don't redirect requests from localhost to HTTPS ( #78 )
2021-01-07 16:49:46 +01:00
andig
5fc5d0ab5d
Load runtime port configuration from http(s)-port file ( #77 )
2021-01-06 22:27:29 +01:00
Michael Stapelberg
5a84eb5921
fall back to mounting permanent storage as vfat if not ext4
2021-01-04 15:27:20 +01:00
Matt Layher
caded46676
gokrazy: import and use github.com/mdlayher/watchdog ( #72 )
...
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-10-06 17:11:15 +02:00
Michael Stapelberg
f7c3cb7e0e
GitHub actions: also exit early if gofmt reports syntax errors
2020-08-01 09:48:00 +02:00
Michael Stapelberg
38d36b6619
GitHub actions: fix gofmt check
2020-08-01 09:25:52 +02:00
Michael Stapelberg
11dacf4264
remote syslog: one Write() call per \n-terminated line
...
We don’t want newlines in individual remote syslog lines.
2020-07-19 17:26:11 +02:00
Matt Layher
a4c823dc2b
Add kernel information to web UI header ( #67 )
...
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-14 10:57:14 +02:00
Matt Layher
6739b59028
website: add consrv to showcase ( #64 )
2020-06-30 00:04:45 +02:00
Michael Stapelberg
fc121e1383
export Model()
2020-06-26 11:56:51 +02:00
Michael Stapelberg
f16a76357f
update: use crc32 for checksumming when the client requests it
...
This is significantly faster than sha256 on the Raspberry Pi 4:
update speeds increase from ≈12 MB/s to ≈55 MB/s.
2020-06-26 11:03:54 +02:00
Michael Stapelberg
28292f8e00
quickstart: update for new packer output
2020-06-21 08:29:28 +02:00
Michael Stapelberg
272a5324e3
status: fix template by plumbing through EEPROM variable
2020-06-21 07:43:59 +02:00
Michael Stapelberg
546057ad9b
ntp: log a message after setting the clock
...
related to https://github.com/gokrazy/tools/issues/15
2020-06-21 07:42:00 +02:00
Michael Stapelberg
b48c3767fa
README: fix update instructions
2020-06-20 13:27:56 +02:00
Michael Stapelberg
f1231063e5
README: update instructions from quickstart guide
2020-06-20 13:25:58 +02:00
Michael Stapelberg
5dbb772825
website: make quickstart module init a little easier to follow
...
related to https://github.com/gokrazy/tools/issues/15
2020-06-20 13:22:12 +02:00
Michael Stapelberg
2cbd3c9442
website: fix prototyping link
...
fixes #62
2020-06-19 21:47:24 +02:00
Michael Stapelberg
310a7447e0
website: add rpi4b to supported platforms
...
related to https://github.com/gokrazy/gokrazy/issues/48
2020-06-19 09:02:09 +02:00
Michael Stapelberg
c0759a418c
website: pi 3 → pi 3 or 4
2020-06-19 08:58:39 +02:00
Michael Stapelberg
be1a525364
README: Pi 3 → Pi 3 or 4
...
related to https://github.com/gokrazy/gokrazy/issues/48
2020-06-19 08:56:14 +02:00
Michael Stapelberg
00caabe479
issue template: add gokrazy/rpi4b
...
related to https://github.com/gokrazy/gokrazy/issues/48
2020-06-19 08:55:13 +02:00
Michael Stapelberg
0fa71a6018
display the EEPROM SHA256 hashes (shortened)
...
related to https://github.com/gokrazy/gokrazy/issues/48
2020-06-19 08:50:32 +02:00
Michael Stapelberg
c306d3cd69
move template parsing out of func init
...
If we manage to build with a malformed template now,
the watchdog will work.
fixes #60
2020-06-17 09:13:44 +02:00
Michael Stapelberg
1ec8cbf7d9
add userguide for GPIO
...
related to https://github.com/google/periph/issues/432
fixes https://github.com/gokrazy/gokrazy/issues/33
2020-06-15 09:57:06 +02:00
Michael Stapelberg
59d57578b9
add userguide entries for unencrypted wifi and tls
...
related to https://github.com/gokrazy/gokrazy/issues/51
2020-06-01 11:23:34 +02:00
Michael Stapelberg
f967cb6bb3
delete extra docs/ directory (oops)
2020-06-01 11:23:09 +02:00
Michael Stapelberg
ad94ee5d4d
rename GitHub action workflow to diskimage
2020-05-31 23:23:41 +02:00
Michael Stapelberg
848ce3c054
pull in latest gokrazy/internal
2020-05-31 23:23:22 +02:00
Janis Streib
17bec15432
Added proof of concept TLS support ( #7 ) ( #53 )
...
If there is a certificate and key in /etc/ssl/gokrazy-web.{pem,key.pem},
the webinterface will serve and redirect to https.
2020-05-31 21:58:03 +02:00
Michael Stapelberg
a457d8e04a
start a userguide, with an entry about remote syslog
...
related to https://github.com/gokrazy/gokrazy/issues/51
2020-05-31 21:17:01 +02:00
Michael Stapelberg
9a6d5dfd7b
import website into main repository
...
related to https://github.com/gokrazy/gokrazy/issues/51
2020-05-31 20:29:57 +02:00
Michael Stapelberg
87609f10c7
switch from travis to GitHub actions
2020-05-30 20:33:51 +02:00
Michael Stapelberg
8c74716f04
pull in recent enough gokrazy/internal
2020-05-30 19:05:15 +02:00
Michael Stapelberg
2398e37f70
status: use partuuid-based path in mkfs instruction
...
fixes https://github.com/gokrazy/gokrazy/issues/12
2020-05-30 18:47:48 +02:00
Michael Stapelberg
b93a58e5c8
status: print module info details
...
fixes https://github.com/gokrazy/gokrazy/issues/59
2020-05-30 18:17:38 +02:00
Michael Stapelberg
32f88999da
set HOME=/perm/$basename when starting services
...
Previously, HOME was inherited from the environment of the init process, which
has HOME=/ set. Of course, / is not writable on gokrazy, so this change makes
things less strict and should therefore not break any deployments.
2020-05-27 18:50:52 +02:00
Michael Stapelberg
9e57e3cf2e
dhcp: make network interface name configurable
...
related to https://github.com/gokrazy/gokrazy/issues/57
2020-05-27 08:24:50 +02:00
Michael Stapelberg
c2116a79ed
README: FAT16B → SquashFS
...
related to #10
closes #56
2020-05-25 18:56:08 +02:00
Michael Stapelberg
7e02056689
status: include service status and GOARCH in HTTP headers
...
This will come in handy in https://github.com/gokrazy/breakglass
2020-05-25 09:29:58 +02:00
Michael Stapelberg
727ba0f371
serial console: also try /tmp/serial-busybox/ash
...
This path is provided by the github.com/gokrazy/serial-busybox package.
related to https://github.com/gokrazy/gokrazy/issues/54
2020-05-21 23:12:15 +02:00
Michael Stapelberg
f3445e01a9
fix switchRootPartition on non-PARTUUID installations
...
The first update always worked, but a subsequent update would not.
To manually switch an installation to PARTUUID, mount its boot partition and
replace the root= kernel parameter in cmdline.txt, like so:
/tmp/breakglass669384965 # mkdir boot
/tmp/breakglass669384965 # mount /dev/mmcblk0p1 boot
/tmp/breakglass669384965 # cat boot/cmdline.txt
console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/gokrazy/init elevator=deadline rootwait
/tmp/breakglass669384965 # sed -i 's,root=/dev/mmcblk0p,root=PARTUUID=471cad93-0,g' boot/cmdline.txt
/tmp/breakglass669384965 # cat boot/cmdline.txt
console=ttyAMA0,115200 root=PARTUUID=471cad93-02 init=/gokrazy/init elevator=deadline rootwait
/tmp/breakglass669384965 # umount boot
/tmp/breakglass669384965 # reboot
The PARTUUID= for your installation is printed by gokr-packer:
[…]
2020/05/01 10:05:34 write.go:366: writing MBR (LBAs: vmlinuz=51789, cmdline.txt=119561, PARTUUID=471cad93)
[…]
2020-05-01 10:06:17 +02:00
Michael Stapelberg
3a6c5f85d2
header: include model name on supported platforms
2020-04-08 15:24:36 +02:00