Package: fai-doc Version: 5.8.4 Severity: normal When using the FAI installer ISO to create the master server (static and DHCP server) booting the installed instance results in errors from the /etc/rc.local script. This script appears to be copied from fai-doc
/usr/share/doc/fai-doc/examples/simple/files/etc/rc.local/FAISERVER The problem is this script assumes network interfaces are only defined in /etc/network/interfaces but the installer now writes per-interface definitions to /etc/network/interfaces.d/$IFACE We've modified it locally and attach the patch here.
--- FAISERVER.5.8.4 2020-07-18 12:25:45.153764908 +0100 +++ FAISERVER.new 2020-07-18 12:17:16.907529874 +0100 @@ -10,15 +10,17 @@ set -o pipefail # setup network -nic=$(awk '/iface/ {print $2}' /etc/network/interfaces |egrep -v ^lo) -ifup $nic +nic=$(cat /etc/network/interfaces /etc/network/interfaces.d/* 2>/dev/null | awk '$1 == "iface" && $2 != "lo" {print $2; exit}') +if [ -n "$nic" ]; then + ifup $nic +fi # regenerate ssh_host keys ls /etc/ssh/ssh_host_* > /dev/null if [ $? -ne 0 ]; then