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

This commit is contained in:
Kroese 2025-10-05 17:06:57 +02:00 committed by GitHub
parent f2937ab507
commit 705c6ce7f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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