diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-20 02:53:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-05-20 11:33:47 +0200 |
commit | f1f1be71feacb3b5d2fb89e2f6421c23b9320fbd (patch) | |
tree | c89b82c76007e66d73c2c6dedcac9a0def122818 /test/test-network/conf/25-netdevsim.link | |
parent | test-network: split out setup_netdevsim() (diff) | |
download | systemd-f1f1be71feacb3b5d2fb89e2f6421c23b9320fbd.tar.xz systemd-f1f1be71feacb3b5d2fb89e2f6421c23b9320fbd.zip |
test-network: also set custom altternative name for netdevsim interface
Due to the bug in kernel 6.9 caused by
https://github.com/torvalds/linux/commit/8debcf5832c3e8a6baaea27c75ad8a6ba5077beb,
the net_id udev builtin does not work for netdevsim interface.
So, eni99np1 cannot be used with kernel 6.9 anymore.
Workaround for #32910.
Diffstat (limited to 'test/test-network/conf/25-netdevsim.link')
-rw-r--r-- | test/test-network/conf/25-netdevsim.link | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-network/conf/25-netdevsim.link b/test/test-network/conf/25-netdevsim.link new file mode 100644 index 0000000000..f8beb55cd3 --- /dev/null +++ b/test/test-network/conf/25-netdevsim.link @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Match] +Driver=netdevsim + +[Link] +NamePolicy=keep kernel database onboard slot path +AlternativeNamesPolicy=database onboard slot path mac +# Also set a fixed name. Workaround for bug in kernel 6.9: +# https://github.com/torvalds/linux/commit/8debcf5832c3e8a6baaea27c75ad8a6ba5077beb +AlternativeName=sim99 +MACAddressPolicy=persistent |