diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-11-21 14:38:35 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-11-21 15:05:16 +0100 |
commit | 5f556f806a70f3787fe725254ccf3d245bd5bebc (patch) | |
tree | 5b0d181d1aed03067e6c0539fff42c8aba255ad3 /release/checks/wayland | |
parent | f52039feb89c3414b27036a4ea0554d72d5a2d01 (diff) | |
download | spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar.gz spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar.bz2 spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar.lz spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar.xz spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.tar.zst spectrum-5f556f806a70f3787fe725254ccf3d245bd5bebc.zip |
vm: build command line into kernels
The kernel command line is policy, and shouldn't be hardcoded in start-vm. We could add a mechanism for customising it at some point (this would probably be helpful for custom VMs), but we don't need that at the moment, since for our built-in VMs we're using custom-configured kernels anyway. Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'release/checks/wayland')
-rw-r--r-- | release/checks/wayland/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/checks/wayland/default.nix b/release/checks/wayland/default.nix index 713b924..aa4a3d2 100644 --- a/release/checks/wayland/default.nix +++ b/release/checks/wayland/default.nix @@ -18,13 +18,13 @@ config.pkgs.nixosTest ({ lib, pkgs, ... }: { systemd.services.cloud-hypervisor = { after = [ "crosvm-gpu.service" "weston.service" ]; requires = [ "crosvm-gpu.service" "weston.service" ]; - serviceConfig.ExecStart = "${lib.getExe pkgs.cloud-hypervisor} --memory shared=on --disk path=${appvm}/img/appvm/blk/root.img,readonly=on --disk path=${run}/blk/run.img,readonly=on --cmdline \"console=ttyS0 root=PARTLABEL=root\" --gpu socket=/run/crosvm-gpu.sock --serial tty --console null --kernel ${appvm}/img/appvm/vmlinux"; + serviceConfig.ExecStart = "${lib.getExe pkgs.cloud-hypervisor} --memory shared=on --disk path=${appvm}/img/appvm/blk/root.img,readonly=on --disk path=${run}/blk/run.img,readonly=on --gpu socket=/run/crosvm-gpu.sock --serial tty --console null --kernel ${appvm}/img/appvm/vmlinux"; }; systemd.services.crosvm = { after = [ "crosvm-gpu.service" "weston.service" ]; requires = [ "crosvm-gpu.service" "weston.service" ]; - serviceConfig.ExecStart = "${lib.getExe pkgs.crosvm} run -s /run/crosvm --disk ${appvm}/img/appvm/blk/root.img --disk ${run}/blk/run.img -p \"console=ttyS0 root=PARTLABEL=root\" --vhost-user-gpu /run/crosvm-gpu.sock --serial type=stdout,hardware=virtio-console,stdin=true ${appvm}/img/appvm/vmlinux"; + serviceConfig.ExecStart = "${lib.getExe pkgs.crosvm} run -s /run/crosvm --disk ${appvm}/img/appvm/blk/root.img --disk ${run}/blk/run.img --vhost-user-gpu /run/crosvm-gpu.sock --serial type=stdout,hardware=virtio-console,stdin=true ${appvm}/img/appvm/vmlinux"; serviceConfig.ExecStop = "${lib.getExe pkgs.crosvm} stop /run/crosvm"; }; |