Skip to content

Commit daff938

Browse files
committed
Update README.md
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
1 parent 31b4b9b commit daff938

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,23 @@ The binary must be installed as `/init` and nothing else.
1414

1515
$ make install DESTDIR=<PATH>
1616

17-
## Update
17+
## Update & reboot
1818

1919
When your system is running with `/init` you don't need any extra tool to do an update.
2020
Just put the new kernel at `/kernel` and `/init` will automatically kexec it after the `/etc/reboot` stage.
2121

22+
If you want to update your system in the usual way (pxe, efi,...) you need a cold reboot:
23+
24+
$ touch /reboot
25+
$ reboot
26+
27+
With `reboot` a script that stops your supervisor. For example with `runit`:
28+
29+
$ cat /bin/reboot
30+
#!/bin/sh
31+
32+
exec pkill -HUP runsvdir
33+
2234
## Configuration
2335

2436
Only two files are needed, for example:

0 commit comments

Comments
 (0)