Update buildroot
Update buildroot (branch cesnet/2023-06-12). This also contains a patch
to fix libcurl build[1] which I had on my local dev machine.
New buildroot also builds systemd 252.4 so necessary patch update added.
Also added perl-English package to our CI machines to silence the
following build error:
2023-06-12 12:42:55.964693 | w | Your Perl installation is not complete enough; at least the following
2023-06-12 12:42:55.964825 | w | modules are missing:
2023-06-12 12:42:55.964844 | w |
2023-06-12 12:42:55.964856 | w | English
2023-06-12 12:42:55.964866 | w |
Systemd 252 added naming scheme for net links with devicetree
aliases[2]. This renames our eth{0,1} to end{1,2} which is undesirable
because the boxes physical ports are labelled eth{0,1,2}. Oh and I forgot:
The network does not start after the boot because we expect the names
to be eth{0,1}. So let's make sure our names stay eth{0,1,2}.
[1] https://bugs.buildroot.org/show_bug.cgi?id=15181
[2] https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html
Change-Id: I6a59388216fde516b58b080f8aafdfb5136981d2
diff --git a/board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/osc b/board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/eth-links
similarity index 70%
rename from board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/osc
rename to board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/eth-links
index ffaa6d1..a6f45ae 100755
--- a/board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/osc
+++ b/board/czechlight/clearfog/overlay/usr/lib/systemd/system-generators/eth-links
@@ -4,6 +4,21 @@
mkdir -p /run/systemd/network
+# custom names for ethernet ports (bypassing systemd's predictive naming)
+cat > /run/systemd/network/30-eth0.link <<EOF
+[Match]
+Path=platform-f1070000.ethernet
+[Link]
+Name=eth0
+EOF
+
+cat > /run/systemd/network/30-eth1.link <<EOF
+[Match]
+Path=platform-f1030000.ethernet
+[Link]
+Name=eth1
+EOF
+
# custom names for OSC channels
if grep -q '\<czechlight=sdn-roadm-line.*\>' /proc/cmdline; then
ETH2_NAME=osc
@@ -11,6 +26,8 @@
ETH2_NAME=oscW
ETH3_NAME=oscE
ETH4_NAME=sfp3
+else
+ ETH2_NAME=eth2
fi
if [[ -n "${ETH2_NAME+set}" ]] ; then