]> git.ipfire.org Git - thirdparty/dracut.git/commit
Get ifaces for udev rule use
authordyoung@redhat.com <dyoung@redhat.com>
Wed, 12 Dec 2012 04:23:25 +0000 (12:23 +0800)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Dec 2012 08:08:59 +0000 (09:08 +0100)
commitd7264a3cc0acb4adc95b624a865f8bdd85ddeee3
tree46a6697533623661ce3610e87db923bdb456e91d
parent90781679276669b7b29aed4806098528b84808e3
Get ifaces for udev rule use

In case BOOTIF is not set and IFACES are not set in bonding/vlan/bridge code,
net-genrule.sh will fall to bring up all net interfaces.

Here add a failsafe option to read IFACES from /tmp/net.ifaces

[v1->v2]: move IFACES reading from net.ifaces after bonding/vlan/bridge info
code chunks.
[v2->v3]: [ -n "$IFACES" ] should be  [ -z "$IFACES" ]

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/40network/net-genrules.sh