Skip to content

Commit

Permalink
incusd/instance/lxc: Fix LXCFS per-instance path
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Nov 4, 2024
1 parent 0282a23 commit 91ee242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/instance/drivers/driver_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ ff02::2 ip6-allrouters
continue
}

err = lxcSetConfigItem(cc, "lxc.hook.pre-mount", fmt.Sprintf("mount -o bind %s /var/lib/incus-lxcfs/", filepath.Join(d.DevicesPath(), "lxcfs")))
err = lxcSetConfigItem(cc, "lxc.hook.pre-mount", fmt.Sprintf("mount -o bind %s %s/", filepath.Join(d.DevicesPath(), "lxcfs"), entry))
if err != nil {
return "", nil, err
}
Expand Down

0 comments on commit 91ee242

Please sign in to comment.