X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F30-interface;h=db84395f9d404afb022c378d54d4e4d6d84515b2;hb=78a1427fc167ccee73d448054a9c40c19d737ed3;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..db84395 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,20 @@ iface lo inet loopback iface $NIC1 inet dhcp iface $NIC1 inet6 auto EOF + + elif ifclass LINODE + # NIC1 is wrong, probably because the installer distro + # is stretch and the installed one is buster. + # todo: after upgrading installer to buster, + # try removing this condition + cat > $target/etc/network/interfaces < $target/etc/network/interfaces <$target/etc/initramfs-tools/conf.d/mine <