Skip to content

Commit

Permalink
fix(Udev): count vhci_hcd devices as virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Jul 24, 2024
1 parent 30b09e6 commit a5e4b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udev/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl UdevDevice {

/// Returns true if this device is virtual
pub fn is_virtual(&self) -> bool {
self.syspath().contains("/devices/virtual")
self.syspath().contains("/devices/virtual") || self.syspath().contains("vhci_hcd")
}

/// Returns the devnode of the device. The devnode is the full path to the
Expand Down

0 comments on commit a5e4b18

Please sign in to comment.