Red Hat Bugzilla – Bug 471658
anaconda loader should not bring up network if ks=hd:
Last modified: 2009-02-16 15:32:46 EST
preupgrade wrote something like this into /boot/grub/grub.conf:
title Upgrade to Rawhide
kernel /upgrade/vmlinuz preupgrade repo=hd:UUID=b9215874-6e70-4fc9-846b-a7d3c18d2572:/var/cache/yum/preupgrade stage2=hd:UUID=d74b467d-5b0b-47e3-beac-b883ccd7bf74:/upgrade/install.img ks=hd:UUID=d74b467d-5b0b-47e3-beac-b883ccd7bf74:/upgrade/ks.cfg
anaconda during the loader demands that I choose an interface to bring up, either eth0 or wlan0, despite anaconda not needing networking. So perhaps it shouldn't ask to choose an interface if ks=hd:?
preupgrade could still require networking if there was insufficient space to write /boot/upgrade/install.img. It would have stage2=http:// instead of stage2=hd: So make sure this and other legitimate cases where it needs networking do not break.
I assume that the upgrade would proceed as normal if you configured the interface anyway? Not really a blocker, if that's the case.
I'm working on a patch right now. It's not a blocker, from my point of view. Like Will said, the installation will proceed once the interface is up, the user may just be left wondering why they had to configure the interface.
If the patch is simple, I'll consider it for F-10. I'll post here once I have more to report.
Created attachment 323673 [details]
I think this will fix the issue. Remove the redundant call to kickstartNetworkUp() in loader. If the user specifies vnc, that requires loader to configure networking because we can't present the network configuration UI until we have a display (catch 22 with vnc). So, if they specify vnc *and* the kickstart parameter is a non-network source, set the LOADER_FLAGS_EARLY_NETWORKING flag, which is what I did for the syslog= parameter to make sure we bring up networking in loader.
Chris, can you comment?
I made a couple comments elsewhere that I'll sum up here for completness. (1) The test in the first hunk for !strncmp(ksFile, "ks=", 3) will throw out the possibility of it just being "ks" which can happen under the NFS case. (2) Don't we want to break the tie between VNC and network case, and then change it to be isKickstartFileRemote(loaderData->ksFile) instead?
With those modifications, it looks good to go ahead and commit.
Created attachment 323796 [details]
Updated patch. Sending to the devel list for review.
Patch in anaconda-188.8.131.52-1.
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here: