]> git.ipfire.org Git - thirdparty/dracut.git/commit
network-legacy/net-genrules.sh: use $name instead of $env{INTERFACE}
authorHarald Hoyer <harald@redhat.com>
Wed, 26 Feb 2020 15:53:47 +0000 (16:53 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 27 Feb 2020 12:49:21 +0000 (13:49 +0100)
commita8ba1c4e25051c3c482bb7a6a754c9d785463917
treedd681c9f06415a5fb62f1b35f0afec0c540dc4a2
parent4985aa8c6e89451996e659a39fec7646e9e25f76
network-legacy/net-genrules.sh: use $name instead of $env{INTERFACE}

The original behavior of $env{INTERFACE} was undocumented and changed in
the recent udev versions, breaking the ability to bring up networking
reliably. Switching to $name directive should fix this issue.

Related links:
 - systemd/systemd#12700 (udev PR)
 - systemd/systemd#12291 (related udev issue)
 - systemd/systemd#14935 (this issue, udev side)
 - #732 (this issue, dracut side)

Fixes: #732
modules.d/35network-legacy/net-genrules.sh