Skip to content

init-premount: Fix orphaned process when network unavailable#11

Open
leezu wants to merge 1 commit intodarkrain42:mainfrom
leezu:main
Open

init-premount: Fix orphaned process when network unavailable#11
leezu wants to merge 1 commit intodarkrain42:mainfrom
leezu:main

Conversation

@leezu
Copy link

@leezu leezu commented Jan 31, 2026

When the PIDFILE was deleted by init-bottom (signaling boot should continue without tailscale), the script only broke out of the network retry loop but then continued trying to start tailscale anyway. This caused the process to remain running after switch_root, producing errors as the initramfs environment was no longer available and delaying the boot.

Fix by polling PIDFILE every second while configure_networking runs in the background. This allows prompt detection of PIDFILE deletion and clean exit before switch_root happens, regardless of how long DHCP takes.

When the PIDFILE was deleted by init-bottom (signaling boot should
continue without tailscale), the script only broke out of the network
retry loop but then continued trying to start tailscale anyway. This
caused the process to remain running after switch_root, producing
errors as the initramfs environment was no longer available.

Fix by polling PIDFILE every second while configure_networking runs in
the background. This allows prompt detection of PIDFILE deletion and
clean exit before switch_root happens, regardless of how long DHCP
takes.
@darkrain42 darkrain42 self-assigned this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants