network: do not use ifcfg-rh NM plugin
Apparently eth0 in ProxyVM can be configured using plain keyfile plugin, which is present on all distributions.
This commit is contained in:
parent
cadb102781
commit
7027633e80
@ -14,6 +14,6 @@ unmanaged_devices=mac:fe:ff:ff:ff:ff:ff
|
|||||||
# unmanaged_devices="$unmanaged_devices;mac:$mac"
|
# unmanaged_devices="$unmanaged_devices;mac:$mac"
|
||||||
#done
|
#done
|
||||||
sed -i -e "s/^unmanaged-devices=.*/unmanaged-devices=$unmanaged_devices/" /etc/NetworkManager/NetworkManager.conf
|
sed -i -e "s/^unmanaged-devices=.*/unmanaged-devices=$unmanaged_devices/" /etc/NetworkManager/NetworkManager.conf
|
||||||
sed -i -e "s/^plugins=.*/plugins=keyfile,ifcfg-rh/" /etc/NetworkManager/NetworkManager.conf
|
sed -i -e "s/^plugins=.*/plugins=keyfile/" /etc/NetworkManager/NetworkManager.conf
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -32,14 +32,23 @@ if [ x$ip != x ]; then
|
|||||||
[ -x /rw/config/qubes_ip_change_hook ] && /rw/config/qubes_ip_change_hook
|
[ -x /rw/config/qubes_ip_change_hook ] && /rw/config/qubes_ip_change_hook
|
||||||
fi
|
fi
|
||||||
if [ -f /var/run/qubes-service/network-manager ]; then
|
if [ -f /var/run/qubes-service/network-manager ]; then
|
||||||
cat > /etc/sysconfig/network-scripts/ifcfg-$INTERFACE <<__EOF__
|
cat > /etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE <<__EOF__
|
||||||
DEVICE=$INTERFACE
|
[802-3-ethernet]
|
||||||
IPADDR=$ip
|
duplex=full
|
||||||
NETMASK=255.255.255.255
|
|
||||||
NETWORK=$ip
|
[connection]
|
||||||
ONBOOT=yes
|
id=VM uplink $INTERFACE
|
||||||
GATEWAYDEV=$INTERFACE
|
uuid=de85f79b-8c3d-405f-a652-cb4c10b4f9ef
|
||||||
GATEWAY=$gateway
|
type=802-3-ethernet
|
||||||
|
|
||||||
|
[ipv6]
|
||||||
|
method=ignore
|
||||||
|
|
||||||
|
[ipv4]
|
||||||
|
method=manual
|
||||||
|
dns=$gateway;$secondary_dns
|
||||||
|
address1=$ip/32,$gateway
|
||||||
|
may-fail=false
|
||||||
__EOF__
|
__EOF__
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user