Skip to content

Commit

Permalink
README.md: Add building and installation section
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Ferrante <thibault.ferrante@canonical.com>
  • Loading branch information
ThibF committed May 24, 2024
1 parent 956df71 commit 5793829
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ user 0m0.736s
sys 0m0.795s
```

# Building

Static building is necessary as this binary is going to be executed
before the file system is up and running.

```
RUSTFLAGS='-C target-feature=+crt-static' cargo build -r
```

# Local installation

Put the binary into virtme/guest/bin/.
e.g. when used as a submodule:
```
cp target/release/virtme-ng-init ../virtme/guest/bin
```

# Credits

Author: Andrea Righi <andrea.righi@canonical.com>

0 comments on commit 5793829

Please sign in to comment.