mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-10-12 21:54:59 +08:00
fix: Exclude 'tap' from bus check (#1043)
This commit is contained in:
parent
f2937ab507
commit
705c6ce7f1
@ -412,8 +412,7 @@ getInfo() {
|
|||||||
nic=$(grep -m 1 -i 'driver:' <<< "$result" | awk '{print $(2)}')
|
nic=$(grep -m 1 -i 'driver:' <<< "$result" | awk '{print $(2)}')
|
||||||
bus=$(grep -m 1 -i 'bus-info:' <<< "$result" | awk '{print $(2)}')
|
bus=$(grep -m 1 -i 'bus-info:' <<< "$result" | awk '{print $(2)}')
|
||||||
|
|
||||||
if [[ "${bus,,}" != "" && "${bus,,}" != "n/a" ]]; then
|
if [[ "${bus,,}" != "" && "${bus,,}" != "n/a" && "${bus,,}" != "tap" ]]; then [[ "$DEBUG" == [Yy1]* ]] && info "Detected BUS: $bus"
|
||||||
[[ "$DEBUG" == [Yy1]* ]] && info "Detected BUS: $bus"
|
|
||||||
error "This container does not support host mode networking!"
|
error "This container does not support host mode networking!"
|
||||||
exit 29
|
exit 29
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user