From: LAHAYE Olivier <olivier.lahaye-KCE40YydGKI@public.gmane.org>
To: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: HELP needed: dracut 049: initqueue/online hook never triggered?
Date: Mon, 9 Mar 2020 13:02:44 +0000 [thread overview]
Message-ID: <D54C3CCB-D8A5-414E-876C-0FCE6AFCFFE4@cea.fr> (raw)
Hi,
My module requires initqueue/online queue to be run. It works fine on CentOS-7, but fails on CentOS-8.1 (dracut-049-27.git20190906.el8_1.1.x86_64)
In fact it fails on all dracut version that have the 40network module split with 35network-legacy and 35network-manager.
On CentOS-8.1, by default, 40network uses 35network-manager which is fine, but then, I see no code that would run the initqueue/online hook in either 40network or 35network-manager (nor in 98systemd). Am I missing something?
My systemimager dracut module supports dracut from CentOS-6 (where I use udev to simulate online hook) to CentOS-8.0 which still run the online hook.
I’d like to avoid requiring 35network-legacy for multiple reasons:
• I don’t know how to require it only on CentOS-8.1 (make it optional)
• I don’t know how to finish boot using networkmanager if I start with legacy mode
• This legacy option won’t last forever…
I’d also like to avoid doing the same trick as I do on CentOS-6, playing with udev rules.
How do I have dracut do the following when using 45network-manager? (need initqueue is there and module module depends on network of course)
• source_hook initqueue/online $netif
I did look into 80anaconda module, that uses /tmp/net.*.did-setup in online_netdevs, but I wonder how this file can exists when 35network-manager is used? (when timeout occurs and drops me to a shell, I see /tmp as almost empty while my network is up…)
My module source: https://github.com/finley/SystemImager/tree/SystemImager-NG/lib/dracut/modules.d/51systemimager
Many thanks for help on that as I’m stuck for now :-/
--
Olivier LAHAYE
SystemImager developper.
--
Olivier LAHAYE
CID & ASSI - DRT Saclay
next reply other threads:[~2020-03-09 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-09 13:02 LAHAYE Olivier [this message]
[not found] ` <D54C3CCB-D8A5-414E-876C-0FCE6AFCFFE4-KCE40YydGKI@public.gmane.org>
2020-03-30 13:32 ` HELP needed: dracut 049: initqueue/online hook never triggered? Harald Hoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D54C3CCB-D8A5-414E-876C-0FCE6AFCFFE4@cea.fr \
--to=olivier.lahaye-kce40yydgki@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).