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
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