Update network.sh

This commit is contained in:
Kroese 2025-03-17 23:08:42 +01:00 committed by GitHub
parent a158529dc1
commit d321d98b48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ configureDHCP() {
error "Cannot create macvtap interface. Please make sure that the network type of the container is 'macvlan' and not 'ipvlan'." error "Cannot create macvtap interface. Please make sure that the network type of the container is 'macvlan' and not 'ipvlan'."
return 1 ;; return 1 ;;
"RTNETLINK answers: Operation not permitted"* ) "RTNETLINK answers: Operation not permitted"* )
error "No permission to create macvtap interface. Please make sure that your host kernel supports it and that the NET_ADMIN capability is set." error "No permission to create macvtap interface. Please make sure that your host kernel supports it and that the NET_ADMIN capability is set."
return 1 ;; return 1 ;;
*) *)
[ -n "$msg" ] && echo "$msg" >&2 [ -n "$msg" ] && echo "$msg" >&2