Skip to content

Commit bb0c6d8

Browse files
SuperSandro2000astro
authored andcommitted
Use absolute paths for virtiofsd
1 parent adbd716 commit bb0c6d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos-modules/host/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ in
266266
SyslogIdentifier = "microvm-virtiofsd@%i";
267267
LimitNOFILE = 1048576;
268268
};
269-
path = with pkgs; [ coreutils virtiofsd ];
269+
path = with pkgs; [ virtiofsd ];
270270
script = ''
271-
for d in current/share/microvm/virtiofs/*; do
272-
SOCKET=$(cat $d/socket)
271+
for d in $PWD/current/share/microvm/virtiofs/*; do
272+
SOCKET="$(realpath "$(cat $d/socket)")"
273273
SOURCE="$(cat $d/source)"
274274
mkdir -p "$SOURCE"
275275

0 commit comments

Comments
 (0)