fix virtiofsd in CIs

This commit is contained in:
Jörg Thalheim
2024-02-13 13:31:13 +01:00
parent b15c21f800
commit 952f976ea7
2 changed files with 1 additions and 4 deletions

View File

@@ -37,14 +37,13 @@ let
virtualisation.fileSystems = lib.mkForce ({ virtualisation.fileSystems = lib.mkForce ({
"/nix/store" = { "/nix/store" = {
device = "nix-store"; device = "nix-store";
options = [ "x-systemd.requires=systemd-modules-load.service" ]; options = [ "x-systemd.requires=systemd-modules-load.service" "ro" ];
fsType = "virtiofs"; fsType = "virtiofs";
}; };
"/" = { "/" = {
device = "/dev/vda"; device = "/dev/vda";
fsType = "ext4"; fsType = "ext4";
noCheck = true;
options = [ "defaults" "x-systemd.makefs" ]; options = [ "defaults" "x-systemd.makefs" ];
}; };

View File

@@ -277,10 +277,8 @@ def start_virtiofsd(socket_path: Path) -> Iterator[None]:
str(socket_path), str(socket_path),
"--cache", "--cache",
"always", "always",
"--posix-acl",
"--sandbox", "--sandbox",
sandbox, sandbox,
"--xattr",
"--shared-dir", "--shared-dir",
"/nix/store", "/nix/store",
], ],