Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758938 - net-misc/netifrc-0.7.1-r1 : net.sh does not ignore wireguard nic
Summary: net-misc/netifrc-0.7.1-r1 : net.sh does not ignore wireguard nic
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-07 17:48 UTC by will_th
Modified: 2021-04-06 12:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description will_th 2020-12-07 17:48:06 UTC
When doing "wg-quick up wg0" the net.sh fails because it does not ignore wg0 like other 'interfaces that are registered after being "up" (?)' (from net.sh.

udev tries to start wg0 and after not finding the interface, tries to stop wg0, which does not exists...
udev waits infinite for "/bin/sh /lib/udev/net.sh wg0 stop" to finish.

only restarting udev will wipe that process.....

Reproducible: Always

Steps to Reproduce:
1.wg-quick up wg0
2.
3.
Actual Results:  
udev waits infinite for "/bin/sh /lib/udev/net.sh wg0 stop" to finish.

only restarting udev will wipe that process.....

wg0 is not started

Expected Results:  
wg0 starts

in "/lib/udev/net.sh" :

"case ${IFACE} in
        ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)
                exit 0 ;;
esac"

should read :


"case ${IFACE} in
        wg*|ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)
                exit 0 ;;
esac"
Comment 1 Larry the Git Cow gentoo-dev 2021-01-18 18:00:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=6d8ec90ad901b7406b0b23878de112296d9e16ac

commit 6d8ec90ad901b7406b0b23878de112296d9e16ac
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-01-18 14:47:34 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-01-18 14:49:14 +0000

    udev_helper/net.sh: Ignore wireguard interfaces
    
    Bug: https://bugs.gentoo.org/758938
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 udev_helper/net.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-06 12:09:39 UTC
Fixed in 0.7.3.