From 5793829516776d884a4f75e3711f0e06b55ec88f Mon Sep 17 00:00:00 2001 From: Thibault Ferrante Date: Fri, 24 May 2024 17:09:02 +0200 Subject: [PATCH] README.md: Add building and installation section Signed-off-by: Thibault Ferrante --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 1b9fc3b..e8d1d6e 100644 --- a/README.md +++ b/README.md @@ -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