File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 86
86
} ;
87
87
88
88
# systemd>=256 hangs at stage-2 on notifying X_SYSTEMD_HOSTNAME
89
- doNotify = builtins . compareVersions pkgs . systemd . version "256" < 0 ;
89
+ supportsNotifySocket =
90
+ builtins . compareVersions pkgs . systemd . version "256" < 0 ;
90
91
91
92
in {
92
93
inherit tapMultiQueue ;
99
100
rm -f '${ socket } '
100
101
'' }
101
102
102
- '' + lib . optionalString doNotify ''
103
+ '' + lib . optionalString supportsNotifySocket ''
103
104
# Ensure notify sockets are removed if cloud-hypervisor didn't exit cleanly the last time
104
105
rm -f notify.vsock notify.vsock_8888
105
106
119
120
done
120
121
'' ;
121
122
122
- supportsNotifySocket = true ;
123
+ inherit supportsNotifySocket ;
123
124
124
125
command =
125
126
if user != null
141
142
"--memory" memOps
142
143
]
143
144
++
144
- lib . optionals doNotify [
145
+ lib . optionals supportsNotifySocket [
145
146
"--platform" "oem_strings=[io.systemd.credential:vmm.notify_socket=vsock-stream:2:8888]"
146
147
"--vsock" "cid=3,socket=notify.vsock"
147
148
]
You can’t perform that action at this time.
0 commit comments