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}";
|
||||
where = dir;
|
||||
};
|
||||
bindMountSvc = dir: svc: (bindMount' dir) // {
|
||||
bindMountSvc = dir: svc: target: (bindMount' dir) // {
|
||||
bindsTo = [svc];
|
||||
partOf = [svc];
|
||||
before = [svc];
|
||||
wantedBy = [target];
|
||||
};
|
||||
bindMount = dir: (bindMount' dir) // {
|
||||
wantedBy = ["multi-user.target"];
|
||||
};
|
||||
in [
|
||||
(bindMountSvc "/var/lib/libvirt" "libvirtd.service")
|
||||
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service")
|
||||
(bindMountSvc "/var/lib/libvirt" "libvirtd.service" "multi-user.target")
|
||||
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service" "network.target")
|
||||
(bindMount "/root")
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue