]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(network): don't use same ifname multiple times
authorMartin Wilck <mwilck@suse.com>
Sat, 17 Sep 2022 21:05:39 +0000 (23:05 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 30 Sep 2022 06:02:18 +0000 (06:02 +0000)
commitf4e9ea879f38bea92069e9397028caa5d81e5aee
treeb81c0ae58b9c51a9dbbd21ecc89f28cf39f5cc4a
parenta65fab69662d3adf52eb968411f59ebc5a173f7c
fix(network): don't use same ifname multiple times

If multiple ibft interfaces exist, set_ifname() may reuse the same
name (usually "ibft0"), because it's usually called cmdline time,
when no interfaces exist in sysfs yet. Remember the number used
set and don't use it again.
modules.d/40network/net-lib.sh