mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
IFS
This commit is contained in:
parent
81fd26c2c1
commit
fae34fdfab
@ -39,7 +39,7 @@ 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'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user