Unverified Commit 705c6ce7 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Exclude 'tap' from bus check (#1043)

parent f2937ab5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -412,8 +412,7 @@ getInfo() {
  nic=$(grep -m 1 -i 'driver:' <<< "$result" | awk '{print $(2)}')
  bus=$(grep -m 1 -i 'bus-info:' <<< "$result" | awk '{print $(2)}')

  if [[ "${bus,,}" != "" && "${bus,,}" != "n/a" ]]; then
    [[ "$DEBUG" == [Yy1]* ]] && info "Detected BUS: $bus"
  if [[ "${bus,,}" != "" && "${bus,,}" != "n/a" && "${bus,,}" != "tap" ]]; then    [[ "$DEBUG" == [Yy1]* ]] && info "Detected BUS: $bus"
    error "This container does not support host mode networking!"
    exit 29
  fi