Commit d6f5eb5f authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should keep configuration on eth0 regardless of systemd-networkd state as...

We should keep configuration on eth0 regardless of systemd-networkd state as eth0 may be used to mount vital partitions and eth0 should not go down until very last moment
parent c80f2d67
......@@ -379,6 +379,9 @@ reconfigure_networking() {
echo "Address=$ip" >> /etc/systemd/network/$int.network
fi
done
if [ "$int" == "eth0"]; then
echo "KeepConfiguration=yes" >> /etc/systemd/network/$int.network
fi
if [ "$dynamic" == "1" ]; then
echo "" >> /etc/systemd/network/$int.network
echo "[DHCP]" >> /etc/systemd/network/$int.network
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment