RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1774438 - Support option for enabling NetworkManager in initramfs on target system
Summary: Support option for enabling NetworkManager in initramfs on target system
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Radek Vykydal
QA Contact: Release Test Team
Sharon Moroney
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-20 10:02 UTC by Radek Vykydal
Modified: 2020-09-15 21:56 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-15 21:56:51 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
lsinitrd diff of initramfs generated by anaconda with NM network module enabled (comment #18) (7.00 KB, text/plain)
2019-12-17 09:45 UTC, Radek Vykydal
no flags Details

Description Radek Vykydal 2019-11-20 10:02:22 UTC
This BZ was created to allow partial enablement of NetworkManager in intramfs (bug 1626348). By default NetworkManager will be disabled in initramfs. Installer will not be able to handle NetworkManager enabled in initramfs but will allow to add boot option to enable NetworkManager on target system.

Complete support for NetworkManager in initramfs in installer will be done in bug 1727885.

Comment 1 Radek Vykydal 2019-11-20 10:04:42 UTC
Possible approaches:

1) Use the target system option also in installer with initramfs instrumented not to apply the option in initramfs but pass it to the stage2 which would be patched (a whitelist extended) to pass such option to the installed system boot options.

This may require nasty hacks in anaconda dracut modules (hiding the option early in intramfs and passing it to anaconda before switch root).

2) Use installer specific (inst. namespaced) option that would just add the option to the target system boot options. Seems as a preferred solution to me.

Comment 2 Jan Stodola 2019-11-20 10:50:11 UTC
Approach 2) looks like a safer way, so I vote for it as well.

Comment 3 Samantha N. Bueno 2019-11-20 14:25:53 UTC
(In reply to Jan Stodola from comment #2)
> Approach 2) looks like a safer way, so I vote for it as well.

Agreed.

Thanks, Radek

Comment 4 Radek Vykydal 2019-11-25 12:17:52 UTC
Do we already know how is the NM supposed to be enabled on the target system, ie the boot option to be used?

Comment 5 Lukáš Nykrýn 2019-11-25 12:34:08 UTC
^^^ Lubo, any ideas?

Comment 7 Radek Vykydal 2019-11-28 09:59:10 UTC
Thomas, would you be able to answer my question in comment #4?
We'd need to get the patch in before feature freeze and I need to now how the boot option would look like. I am not able to reach Lubomir.

Comment 8 Thomas Haller 2019-11-28 12:00:27 UTC
> Do we already know how is the NM supposed to be enabled on the target system, ie the boot option to be used?

I don't know, but looking at 

https://github.com/dracutdevs/dracut/blob/7d47d1c423cabfd125a2bf15c5d72732a6334024/modules.d/35network-manager/nm-config.sh

it seems this is not a NetworkManager specific question.

If NetworkManager is in initrd, then it will be enabled by boot options that are documented in `man dracut.cmdline`. Especially rd.neednet=1 seems relevant here. So, it depends on wheter initrd was generated to include NetworManager.


But probably I misunderstand something here. Can you clarify your question?

Comment 9 Radek Vykydal 2019-11-28 12:51:11 UTC
If I am not mistaken, the idea which came out from an email discussion was that for 8.2 NM would be always (by default) in initrd but enabled by a special boot option as an opt-in. Installer will add its own option to enable the feature on installed system (not supporting NM in initramfs yet, this is planned for 8.3 when we have adequate test coverage), ie add the option to the installed system boot options.

Maybe I should wait for Lubomir to be sure we are on the same boat here.

Comment 16 Radek Vykydal 2019-12-10 11:34:08 UTC
Hello Sharon, per comment #12 this seems to be going to be moved to 8.3.
The chances the feature will hit Beta are minimal now. In any case we don't have enough information from NetworkManager to be able to document the feature at the moment.

Comment 18 Radek Vykydal 2019-12-17 09:43:41 UTC
From our last meeting with thaller and lnykryn it seems we are just going to document how to regenerate iniramfs with NM module enabled: bug 1783996.

As for support in anaconda - ie generating the initramfs right during installation we would describe a solution using kickstart %pre-install script.

I've checked this should be working in current RHEL 8.2:

%pre-install
mkdir -p /mnt/sysimage/etc/dracut.conf.d
echo 'add_dracutmodules+=" network-manager "' > /mnt/sysimage/etc/dracut.conf.d/enable-nm.conf
%end

I'll attach lsinitrd diff of the intramfs.

Comment 19 Radek Vykydal 2019-12-17 09:45:40 UTC
Created attachment 1645807 [details]
lsinitrd diff of initramfs generated by anaconda with NM network module enabled (comment #18)

Comment 20 Radek Vykydal 2019-12-17 09:57:17 UTC
(In reply to Radek Vykydal from comment #19)
> Created attachment 1645807 [details]
> lsinitrd diff of initramfs generated by anaconda with NM network module
> enabled (comment #18)

Just a note: won't we be missing something like ip tool in initramfs ? The concern was raised also in https://bugzilla.redhat.com/show_bug.cgi?id=1727904#c13.

Comment 21 Thomas Haller 2019-12-17 10:17:10 UTC
(In reply to Radek Vykydal from comment #20)
> Just a note: won't we be missing something like ip tool in initramfs ? The
> concern was raised also in
> https://bugzilla.redhat.com/show_bug.cgi?id=1727904#c13.

reported: bug 1784358

Comment 25 Jan Stodola 2020-09-15 21:56:51 UTC
Support for NM in initramfs has been completed in bug 1727885 and bug 1626348, so this bug is not needed any more.
I'm closing this bug, please re-open if you disagree.


Note You need to log in before you can comment on or make changes to this bug.