Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1894842 Details for
Bug 2104398
Network boot fails in dracut-initqueue due to nm-online wrongly pretend that the network is connected
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Override nm-wait-online-initrd.service
nm-wait-online-routes-gw.conf (text/plain), 1.73 KB, created by
Francis.Montagnac
on 2022-07-06 07:25:16 UTC
(
hide
)
Description:
Override nm-wait-online-initrd.service
Filename:
MIME Type:
Creator:
Francis.Montagnac
Created:
2022-07-06 07:25:16 UTC
Size:
1.73 KB
patch
obsolete
># $Id: nm-wait-online-routes-gw.conf,v 1.5 2022/07/06 05:36:56 fm Exp $ > ># Modifies NetworkManager-wait-online.service to replaces the call of ># nm-online by waiting for all the wanted routes to be up and that the default ># gateway (if any) is reachable. > ># Uses ip and arping. > ># To install for example as: ># ># /etc/systemd/system/NetworkManager-wait-online.service.d/routes-gw.conf ># ># Then adjust the ROUTES MAXWAIT variables below. > ># Example for the ROUTES: ># ># ROUTES=" \ ># default \ ># 1.2.3.0/24 \ ># 4.5.6.0/24 \ ># "; \ > >[Service] >ExecStart= >ExecStart=/bin/bash -c "LF=$$'\n'; "' \ >ROUTES=" \ > default \ >"; \ > \ >MAXWAIT=60; \ > \ >routes_defined () { \ > local routes=$$(ip route); \ > echo "$$routes"; \ > for i in $$ROUTES; do \ > [[ "$$LF$$routes" == *$$LF$$i* ]] || return 1; \ > done; \ > return 0; \ >}; \ > \ >while (( SECONDS <= MAXWAIT)); do \ > if routes_defined; then \ > echo Network Manager Wait Online routes took $$SECONDS seconds; \ > if ! [[ "$$(ip route)" =~ default\ via\ ([^[:space:]]+) ]]; then \ > echo Network Manager Wait Online: no default route; \ > exit 0; \ > fi; \ > GW=$${BASH_REMATCH[1]}; \ > echo Network Manager Wait Online: default gateway: $$GW; \ > seconds=$$SECONDS; \ > if arping -f -w $$MAXWAIT $$GW; then \ > s=$$((SECONDS-seconds)); \ > echo Network Manager Wait Online gateway took $$s seconds; \ > exit 0; \ > else \ > s=$$((SECONDS-seconds)); \ > echo Network Manager Wait Online gateway failed after $$s seconds; \ > exit 1; \ > fi; \ > fi; \ > sleep 1; \ >done; \ >echo Network Manager Wait Online routes failed after $$SECONDS seconds; \ >exit 1; \ > \ >'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2104398
: 1894842