Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Gallouët <[email protected]>
  • Loading branch information
angt committed Jul 28, 2021
1 parent 31b4b9b commit daff938
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ The binary must be installed as `/init` and nothing else.

$ make install DESTDIR=<PATH>

## Update
## Update & reboot

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

If you want to update your system in the usual way (pxe, efi,...) you need a cold reboot:

$ touch /reboot
$ reboot

With `reboot` a script that stops your supervisor. For example with `runit`:

$ cat /bin/reboot
#!/bin/sh

exec pkill -HUP runsvdir

## Configuration

Only two files are needed, for example:
Expand Down

0 comments on commit daff938

Please sign in to comment.