This commit is contained in:
Kroese 2023-04-20 04:24:11 +02:00 committed by GitHub
parent 81fd26c2c1
commit fae34fdfab

View File

@ -39,8 +39,8 @@ configureDHCP() {
TAP_PATH="/dev/tap$(</sys/class/net/${VM_NET_TAP}/ifindex)"
# create dev file (there is no udev in container: need to be done manually)
IFS=: read MAJOR MINOR < <(cat /sys/class/net/${VM_NET_TAP}/macvtap/${TAP_PATH##*/}/uevent)
IFS=: read major minor < <(cat /sys/devices/virtual/net/tap2/tap*/dev)
if [[ "x${MAJOR}" != "x" ]]; then
echo "Info: Please make sure that the following docker setting is used: --device-cgroup-rule='c ${MAJOR}:* rwm'"
else