Bug 2033231

Summary: disable all devices when ip=eth0:dhcp is specified for initramfs
Product: [Fedora] Fedora Reporter: Vladimir Benes <vbenes>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: anaconda-maint-list, jonathan, kellin, rvykydal, vanmeeuwen+fedora, vponcova, w
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-37.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-03 15:35:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladimir Benes 2021-12-16 10:16:15 UTC
Description of problem:
Anaconda should turn off all devices after switchroot when we have ip=eth0:dhcp specified as an initramfs kernel param as other devices (that are possibly breaking correct routing) are up in addition to the desired eth0 one.

Version-Release number of selected component (if applicable):
rawhide (to be F36)

How reproducible:
always

Steps to Reproduce:
1. have a box with multiple ethernet devices
2. add a kernel param to boot from the possibly slowest one
3. have anaconda having just the one boot device enabled

Actual results:
all devices enabled

Expected results:
just the one specified with the boot param

Additional info:

Comment 1 Radek Vykydal 2021-12-16 10:29:53 UTC
I think it could be valuable to have a boot parameter that would disable creating of default auto connections by NM (and activating of all devices) after switch root. It is disabled by default in RHEL where we enable autoconnections only if there is no explicit network configuration and no kickstart: https://github.com/rhinstaller/anaconda/pull/3481. In Fedora we could use similar mechanism to implement inst.net.noautodefault boot option.

Comment 2 Ben Cotton 2022-02-08 21:21:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 4 Radek Vykydal 2022-03-16 10:39:44 UTC
This should be fixed in the next anaconda rawhide / f37 build.
We've added inst.net.noautodefault option.