Created attachment 470201 [details]
patch with fix
I came across this issue while working on bug #638131 - the use case is installing via one NIC while using iSCSI target via another NIC. I'd like to write BOOTPROTO=ibft and DEFROUTE=no (depending on ks parameter) into iSCSI device's ifcfg file, but DEFROUTE is ignored in this case. I am attaching a patch. Or am I missing some reason for present behaviour?
I think because the initial iSCSI support only targeted the iSCSI device as the boot device, and because with ibft the settings are stored in NVRAM and not changable. GATEWAYDEV is a global setting though, so it isn't stored in NVRAM. Given that GATEWAYDEV is a global, I can't think of a reason why this patch should not be applied.
QE: We need to get this fix included in NetworkManager in RHEL-6 for anaconda bug #638131. We have the changes on the anaconda side, but NM still needs this fix.
I tested it here https://bugzilla.redhat.com/show_bug.cgi?id=638131#c22 from my installer needs POV and it is fixed for me - DEFROUTE=no is honoured and things work as expected.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Configurations that used multiple network devices where one device was an iSCSI adapter that should not have the default route were incorrectly handled. This is now fixed to ensure that iSCSI devices that are denied the default route do not receive it.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.