Merge pull request #203484 from asbachb/lxd/check-for-lxcfs
lxd: Check if `lxcfs` is enabled before adding it as service dependency
This commit is contained in:
@@ -129,8 +129,15 @@ in {
|
|||||||
description = "LXD Container Management Daemon";
|
description = "LXD Container Management Daemon";
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network-online.target" "lxcfs.service" ];
|
after = [
|
||||||
requires = [ "network-online.target" "lxd.socket" "lxcfs.service" ];
|
"network-online.target"
|
||||||
|
(mkIf config.virtualisation.lxc.lxcfs.enable "lxcfs.service")
|
||||||
|
];
|
||||||
|
requires = [
|
||||||
|
"network-online.target"
|
||||||
|
"lxd.socket"
|
||||||
|
(mkIf config.virtualisation.lxc.lxcfs.enable "lxcfs.service")
|
||||||
|
];
|
||||||
documentation = [ "man:lxd(1)" ];
|
documentation = [ "man:lxd(1)" ];
|
||||||
|
|
||||||
path = optional cfg.zfsSupport config.boot.zfs.package;
|
path = optional cfg.zfsSupport config.boot.zfs.package;
|
||||||
|
|||||||
Reference in New Issue
Block a user