docs(tvix/boot): Update command to reflect new tvix/boot directory

This used to be in tvix/test but was moved to tvix/boot, but not all the
command were updated so they no longer work as documented.

This updates the commands to use the new tvix/boot directory.

Change-Id: I8658d928a152140df182c159bf98ea9d9ecd1302
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9482
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Connor Brewster 2023-09-27 16:07:54 -07:00
parent de958ccf01
commit 053e41f4e5

View file

@ -5,7 +5,7 @@ virtiofs.
In the `tests/` subdirectory, there's some integration tests. In the `tests/` subdirectory, there's some integration tests.
## //tvix/tests:runVM ## //tvix/boot:runVM
A script spinning up a `tvix-store virtiofs` daemon, then starting a cloud- A script spinning up a `tvix-store virtiofs` daemon, then starting a cloud-
hypervisor VM. hypervisor VM.
@ -52,7 +52,7 @@ pkill nar-bridge; pkill tvix-store
Run the VM like this: Run the VM like this:
``` ```
CH_CMDLINE=tvix.shell mg run //tvix/tests:runVM -- CH_CMDLINE=tvix.shell mg run //tvix/boot:runVM --
``` ```
You'll get dropped into an interactive shell, from which you can do things with You'll get dropped into an interactive shell, from which you can do things with
@ -81,7 +81,7 @@ Run the VM like this:
``` ```
hello_cmd=$(mg build //third_party/nixpkgs:hello)/bin/hello hello_cmd=$(mg build //third_party/nixpkgs:hello)/bin/hello
CH_CMDLINE=tvix.run=$hello_cmd mg run //tvix/tests:runVM -- CH_CMDLINE=tvix.run=$hello_cmd mg run //tvix/boot:runVM --
``` ```
Observe it executing the file (and closure) from the tvix-store: Observe it executing the file (and closure) from the tvix-store:
@ -106,7 +106,7 @@ init= cmdline option, and will switch_root to it.
``` ```
CH_CMDLINE=init=/nix/store/…-nixos-system-…/init mg run //tvix/tests:runVM -- CH_CMDLINE=init=/nix/store/…-nixos-system-…/init mg run //tvix/boot:runVM --
``` ```
``` ```