X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F30-interface;h=e249b6746cd3f7d6eb893263a46922a96c761a80;hb=83828fe2683227f4d8ecb2343eff28439741b490;hp=a962049c11120b3cc7f96cffcc74ef636a5351d2;hpb=b4ba8c86e19533882a261c89de4d49fb5da6ccd2;p=automated-distro-installer diff --git a/fai/config/scripts/DEBIAN/30-interface b/fai/config/scripts/DEBIAN/30-interface index a962049..e249b67 100755 --- a/fai/config/scripts/DEBIAN/30-interface +++ b/fai/config/scripts/DEBIAN/30-interface @@ -5,9 +5,14 @@ error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code if ! ifclass STABLE; then if ifclass VM; then - # For a vm, we only get ID_NET_NAME_MAC from below, - # but when it reboots, it uses ID_NET_NAME_SLOT. - NIC1=ens3 + # older distro still uses eth0 + if ifclass BELENOS64; then + NIC1=eth0 + else + # For a vm, we only get ID_NET_NAME_MAC from below, + # but when it reboots, it uses ID_NET_NAME_SLOT. + NIC1=ens3 + fi else # get persistent interface name. Note, these class conditions # will need to get modified for new oses. testing vm doesn't use