Red Hat Bugzilla – Bug 972362
RFE: initial-setup is lacking a network config option / spoke.
Last modified: 2015-02-18 06:12:03 EST
Date and time screen in initial-setup says:
"you need to setup networking first if you want to enable network time"
Which makes sense, and I would like to configure networking from intial-setup (for arm images at least this makes a ton of sense), but there is no network setup screen in the initial setup!
I like initial-setup, good stuff!
(In reply to Hans de Goede from comment #0)
> Date and time screen in initial-setup says:
> "you need to setup networking first if you want to enable network time"
> Which makes sense, and I would like to configure networking from
> intial-setup (for arm images at least this makes a ton of sense), but there
> is no network setup screen in the initial setup!
> I like initial-setup, good stuff!
Thanks, you seem to be the only exception. ;) Patch posted to anaconda-patches.
I'm pushing the patches to master. If you'd like the Network spoke to appear in the I-S, please propose this bug as a freeze exception 
(In reply to Vratislav Podzimek from comment #2)
> I'm pushing the patches to master.
Thanks for working on this! And sorry for being a but late with my reply. I've been working on testing F-19 initial-setup with a network spoke the entire day today, based on your patches.
And I'm afraid your patches are a bit incomplete. But no worries I've patches to add on top which fix things and make everything work. I've tested configuring both wired and wireless ethernet on various arm devices through initial-setup, and with the patches I'm about to attach this works fine.
This requires 2 patches on top of your already committed & pushed anaconda change and your uncommitted initial_setup patch:
Simple-config has special code for writing ifcfg files as those cannot be moved into place, but need to be written in place, both so that NetworkManager sees them, and so that they get the right selinux context as creating them in /tmp and then moving them makes them keep there /tmp selinux context.
Funny enough the code has a comment why the write() method is being overridden and then the
write method simply calls the base class write method which does the wrong thing ... This patch fixes this.
Just adding the spoke is not enough, we also need to actually initialize networking, and execute the kickstart network directive. Executing the kickstart network directive requires having an install-class and a storage-object. This also moves the overriding of ROOT_PATH to the top, because its previous location was overriding ROOT_PATH too late for the kickstart network code.
Note I also have some patches to actually make the timezone screen in initial-setup write changes to disk (it is also used on the arm images). As well as an anaconda patch to fix a bug where created users need to immediately change their passwords, I'll file 2 separate bugs for these.
Created attachment 774888 [details]
anaconda simple-config patch
Created attachment 774899 [details]
initial_setup network spoke patch
I'll be going on vacation for a week, so if you've any questions about the patches, and I'm not responding that is why. If there are questions I'll get back to you in a week.
Thanks for the patches. I applied changes from the the one for the Anaconda installer and sent it for a review.
But the one for the Initial Setup is overly complicated, I think. We don't need to call ksdata.network.execute because that just takes care of writing out/copying configuration files from the installation environment to the installed system. However, the Initial Setup is running in the installed system and changes done in its UI are directly reflected to the system's state/configuration. The only exception is the hostname, that was changed only in the execute method so I sent a patch for that to anaconda-patches.
(In reply to Vratislav Podzimek from comment #6)
> Thanks for the patches. I applied changes from the the one for the Anaconda
> installer and sent it for a review.
> But the one for the Initial Setup is overly complicated, I think. We don't
> need to call ksdata.network.execute because that just takes care of writing
> out/copying configuration files from the installation environment to the
> installed system. However, the Initial Setup is running in the installed
> system and changes done in its UI are directly reflected to the system's
> state/configuration. The only exception is the hostname, that was changed
> only in the execute method so I sent a patch for that to anaconda-patches.
Ah, good idea to just write the hostname.
I look forward to testing this when there are F-20 packages available with these changes.
Thanks for all your work on this.
This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.