ifupdown-ng / ifupdown-ng

flexible ifup/ifdown implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ifquery lists non-auto interfaces, causes regression on alpine linux

kazikcz opened this issue · comments

This is something I've found while running alpine-edge. I've reported an issue over there1 since it regresses networking bring up and can cause ugly issues.

Apparently ifquery -L does not respect lack of "auto". Here's an example:

$ printf 'auto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet6 auto\n\niface eth1 inet6 auto\n' | ifquery -L -i /dev/stdin; echo
lo
eth0
eth1

According to man pages on ifquery2:

-l, --list
For ifquery, list all the interfaces which match the specified class. If no class specified, prints all the interfaces listed as auto.

Now, arguably that's -l and not -L. Perhaps the /etc/init.d/networking script needs to be fixed instead?