porcorosso: fix networkmanager bindmount
This commit is contained in:
parent
757900436a
commit
7d752e9871
1 changed files with 5 additions and 3 deletions
|
@ -296,16 +296,18 @@ in {
|
||||||
what = "/persist${dir}";
|
what = "/persist${dir}";
|
||||||
where = dir;
|
where = dir;
|
||||||
};
|
};
|
||||||
bindMountSvc = dir: svc: (bindMount' dir) // {
|
bindMountSvc = dir: svc: target: (bindMount' dir) // {
|
||||||
bindsTo = [svc];
|
bindsTo = [svc];
|
||||||
partOf = [svc];
|
partOf = [svc];
|
||||||
|
before = [svc];
|
||||||
|
wantedBy = [target];
|
||||||
};
|
};
|
||||||
bindMount = dir: (bindMount' dir) // {
|
bindMount = dir: (bindMount' dir) // {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
(bindMountSvc "/var/lib/libvirt" "libvirtd.service")
|
(bindMountSvc "/var/lib/libvirt" "libvirtd.service" "multi-user.target")
|
||||||
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service")
|
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service" "network.target")
|
||||||
(bindMount "/root")
|
(bindMount "/root")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue