Add support of unknown default VG and default root LV names (use find and awk instead)

This commit is contained in:
nemo 2019-09-08 15:21:39 +02:00
parent fd9ad6bdf6
commit f9c4d1e7a4

View file

@ -368,10 +368,12 @@ allow-hotplug ens18
iface ens18 inet static iface ens18 inet static
address ${VM_IPV4_NEW}/${VM_IPV4_NEW_SUBNET_MASK} address ${VM_IPV4_NEW}/${VM_IPV4_NEW_SUBNET_MASK}
gateway ${VM_IPV4_NEW_SUBNET_GW} gateway ${VM_IPV4_NEW_SUBNET_GW}
dns-nameservers 89.234.186.5 89.234.186.4
iface ens18 inet6 static iface ens18 inet6 static
address ${RANGE_IPV6_NEW_WITHOUT_MASK}1/${RANGE_IPV6_NEW_MASK} address ${RANGE_IPV6_NEW_WITHOUT_MASK}1/${RANGE_IPV6_NEW_MASK}
gateway ${IPV6_GATEWAY}" > /tmp/interfaces_vm${VM_ID} gateway ${IPV6_GATEWAY}
dns-nameservers 2a00:5884::9 2a00:5884::7" > /tmp/interfaces_vm${VM_ID}
# Replace network configuration file on new VM # Replace network configuration file on new VM
echo "INFO : Replace network configuration file on new VM... (VM NETWORK CONF UPDATE)" echo "INFO : Replace network configuration file on new VM... (VM NETWORK CONF UPDATE)"