new stack trace, linode fixes, minor improvements
[automated-distro-installer] / fai / config / scripts / DEBIAN / 30-interface
index 74c3058bbdcbdd134f25d669d9385dbea564e419..db84395f9d404afb022c378d54d4e4d6d84515b2 100755 (executable)
@@ -104,6 +104,18 @@ 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 <<EOF
+# generated by FAI
+auto lo $linode_if
+iface lo inet loopback
+iface $linode_if inet dhcp
+iface $linode_if inet6 auto
+EOF
 
       else
         cat > $target/etc/network/interfaces <<EOF
@@ -124,8 +136,8 @@ EOF
       fi
 
       if ifclass LINODE; then
-        mkdir -p /etc/initramfs-tools/conf.d
-        cat >/etc/initramfs-tools/conf.d/mine <<EOF
+        mkdir -p $target/etc/initramfs-tools/conf.d
+        cat >$target/etc/initramfs-tools/conf.d/mine <<EOF
 # dhcp in initramfs doesn't work on linode. i dunno why, whatever.
 # man 5 initramfs.conf
 # /usr/share/doc/klibc-utils/README.ipconfig.gz