Bug 2033231 - disable all devices when ip=eth0:dhcp is specified for initramfs
Summary: disable all devices when ip=eth0:dhcp is specified for initramfs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-16 10:16 UTC by Vladimir Benes
Modified: 2022-05-03 15:35 UTC (History)
7 users (show)

Fixed In Version: anaconda-37.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-03 15:35:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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