Comment 6 for bug 1725680

Revision history for this message
patpat (masottaus) wrote :

I'm PXE booting 17.10 live with Serva.
I also found that the booting image DNS is broken.

I traced the problem to Casper within the booting initrd.lz, the file
/script/casper-bottom/23networking
does not populate
/etc/systemd/resolved.conf
therefore the DNS daemon does not work.

I've added to 23networking

    if [ -f /root/etc/systemd/resolved.conf ]; then
     resolv=/root/etc/systemd/resolved.conf

            cat > $resolv <<EOF
# resolv=/root/etc/systemd/resolved.conf
# Autogenerated by casper-Serva
EOF
 echo "[Resolve]" >> $resolv
        [ -n "$rc_server0" ] && [ "$rc_server0" != "0.0.0.0" ] && echo "DNS=$rc_server0" >> $resolv
        [ -n "$rc_server1" ] && [ "$rc_server1" != "0.0.0.0" ] && echo "FallbackDNS=$rc_server1" >> $resolv
        [ -n "$rc_server1" ] && [ "$rc_server1" = "0.0.0.0" ] && [ "$rc_server0" != "0.0.0.0" ] && echo "FallbackDNS=$rc_server0" >> $resolv
        [ -n "$rc_domain" ] && echo "Domains=${rc_domain}" >> $resolv

 echo "#LLMNR=yes" >> $resolv
 echo "#MulticastDNS=yes" >> $resolv
 echo "#DNSSEC=no" >> $resolv
 echo "#Cache=yes" >> $resolv
 echo "#DNSStubListener=udp" >> $resolv

    fi

and now 17.10 live PXE boots correctly with a healthy DNS

Best,
Patrick