X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F30-interface;h=74c3058bbdcbdd134f25d669d9385dbea564e419;hb=948ef49d2b4d7680da2355acf9da86f81ca75ecd;hp=808aa2504f8cb3ab06cf1df47a946951b9d03168;hpb=ee37d990c89bb3bab1b54e3b3fb43e9f79ed039b;p=automated-distro-installer diff --git a/fai/config/scripts/DEBIAN/30-interface b/fai/config/scripts/DEBIAN/30-interface index 808aa25..74c3058 100755 --- a/fai/config/scripts/DEBIAN/30-interface +++ b/fai/config/scripts/DEBIAN/30-interface @@ -93,7 +93,7 @@ case "$FAI_ACTION" in elif [ -d $target/etc/network/interfaces.d ]; then # ifupdown >= 0.7.41 (Debian >= 8, Ubuntu >= 14.04) - if ifclass VM || ifclass BUSTER_LINODE; then + if ifclass VM || ifclass LINODE; then # note, this condition would apply to the elif below too, # but I don't specify a static ip in fai, so not bothering cat > $target/etc/network/interfaces <<-EOF @@ -103,6 +103,8 @@ iface lo inet loopback iface $NIC1 inet dhcp iface $NIC1 inet6 auto EOF + + else cat > $target/etc/network/interfaces </etc/initramfs-tools/conf.d/mine <