Skip to content

Commit 5d6abd7

Browse files
committed
incusd/devices: Don't require a serial number for USB hotplug
Closes #1944 Signed-off-by: Stéphane Graber <[email protected]>
1 parent 13f6ccc commit 5d6abd7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmd/incusd/devices.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,6 @@ func deviceNetlinkListener() (chan []string, chan device.USBEvent, chan device.U
150150
continue
151151
}
152152

153-
serial, ok := props["SERIAL"]
154-
if !ok {
155-
continue
156-
}
157-
158153
major, ok := props["MAJOR"]
159154
if !ok {
160155
continue
@@ -192,7 +187,7 @@ func deviceNetlinkListener() (chan []string, chan device.USBEvent, chan device.U
192187
*/
193188
zeroPad(parts[0], 4),
194189
zeroPad(parts[1], 4),
195-
serial,
190+
props["SERIAL"],
196191
major,
197192
minor,
198193
busnum,

0 commit comments

Comments
 (0)