mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
docs: update INSTALL.md with a section about building CRIU
The building section also contains the information how to change the network locking backend without source code changes. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
867c773031
commit
2cd9d5ded8
20
INSTALL.md
20
INSTALL.md
@ -1,3 +1,23 @@
|
||||
## Building CRIU from source code
|
||||
|
||||
First, you need to install compile-time dependencies. Check [Installation dependencies](https://criu.org/Installation#Dependencies) for more info.
|
||||
|
||||
To compile CRIU, run:
|
||||
```
|
||||
make
|
||||
```
|
||||
This should create the `./criu/criu` executable.
|
||||
|
||||
To change the default behaviour of CRIU, the following variables can be passed
|
||||
to the make command:
|
||||
|
||||
* **NETWORK_LOCK_DEFAULT**, can be set to one of the following
|
||||
values: `NETWORK_LOCK_IPTABLES`, `NETWORK_LOCK_NFTABLES`,
|
||||
`NETWORK_LOCK_SKIP`. CRIU defaults to `NETWORK_LOCK_IPTABLES`
|
||||
if nothing is specified. If another network locking backend is
|
||||
needed, `make` can be called like this:
|
||||
`make NETWORK_LOCK_DEFAULT=NETWORK_LOCK_NFTABLES`
|
||||
|
||||
## Installing CRIU from source code
|
||||
|
||||
Once CRIU is built one can easily setup the complete CRIU package
|
||||
|
Loading…
x
Reference in New Issue
Block a user