Michael Stapelberg
99287f68e3
update rootRe for running in user-mode linux
2018-11-01 17:54:23 +01:00
Michael Stapelberg
9770d4408f
move root device finding function to internal/rootdev
2018-07-14 23:37:12 +02:00
Michael Stapelberg
d8206c507c
/update/mbr: strip p suffix from mmcblk0p
2018-07-13 23:53:46 +02:00
Michael Stapelberg
24c8ad07b5
streamRequestTo: call f.Sync()
...
When calling reboot shortly after /update/*, the kernel should flush its cache,
but if you’re not calling reboot, it would be good to persist the data on disk
nevertheless.
2018-07-13 23:16:26 +02:00
Michael Stapelberg
0f8d40d7f6
add /update/mbr
2018-07-12 09:27:32 +02:00
Michael Stapelberg
4f0e427025
reboot: use kexec where possible
...
This doesn’t work on the Raspberry Pi yet (due to missing kexec_file_load), but
I tested it in qemu.
2018-06-17 09:29:29 +02:00
Michael Stapelberg
91da7026f8
reboot: send SIGTERM to processes, wait for 1s
...
This way, programs can flush state to permanent storage if they need to.
2018-06-17 08:53:19 +02:00
Michael Stapelberg
34f12d9ada
update: find root device instead of hard-coding /dev/mmcblk0p*
...
This should allow using gokrazy from a USB drive.
2018-06-12 22:19:13 +02:00
Michael Stapelberg
6063608b2b
update: introduce a /bootonly handler for bakery
...
Regular updates hit /boot, /root, then /switch.
bakery only updates /boot, so we need to take care of persisting the active root
partition across /boot updates.
2018-05-17 09:08:25 +02:00
Michael Stapelberg
b96471c05d
update FAT16B writer import path
2017-07-14 03:19:15 +02:00
Michael Stapelberg
38af7fd18d
Initial commit
2017-03-04 11:22:48 +01:00