Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937895 - Shutdown hang using VLANs with net-misc/netifrc-0.7.8-r1 and sys-apps/systemd-255.7-r1
Summary: Shutdown hang using VLANs with net-misc/netifrc-0.7.8-r1 and sys-apps/systemd...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 05:06 UTC by Sam Revitch
Modified: 2024-08-14 05:06 UTC (History)
0 users

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 Sam Revitch 2024-08-14 05:06:44 UTC
Attempting to shut down a system with systemd, netifrc, and configured VLANs results in a hang.

The netifrc VLAN helper script calls back into the /etc/init.d/net.lo script to shut down VLAN sub-interfaces.  It assigns RC_SVCNAME to the service name for the VLAN sub-interface, but this does not accomplish the desired result under systemd.  Instead, it needs to set RC_IFACE.

Reproducible: Always

Steps to Reproduce:
1. Configure systemd + netifrc
2. /etc/conf.d/net --> vlans_eth0="1"
3. systemctl start net@eth0
4. Reboot
Actual Results:  
Systemd hangs waiting for shutdown to complete.
The prestop() function in /etc/conf.d/net is invoked with the parent interface name and not the VLAN subordinate.  The presence of a prestop() function is not required for shutdown to hang.

Expected Results:  
Systemd clean/expedient shutdown.
prestop() function invoked correctly.