Red Hat Bugzilla – Bug 866701
RuntimeError: Error running hostname: No such file or directory
Last modified: 2013-01-10 01:56:38 EST
Description of problem:
trying to install f17
Version-Release number of selected component:
libreport version: 2.0.16
cmdline: /usr/bin/python /usr/sbin/anaconda
:The following was filed automatically by anaconda:
:anaconda 17.29 exception report
:Traceback (most recent call first):
: File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 181, in execWithRedirect
: raise RuntimeError, errstr
: File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 506, in setHostname
: stdout="/dev/tty5", stderr="/dev/tty5")
: File "/usr/lib64/python2.7/site-packages/pyanaconda/iw/network_gui.py", line 98, in getNext
: File "/usr/lib64/python2.7/site-packages/pyanaconda/gui.py", line 1197, in nextClicked
: rc = self.currentWindow.getNext ()
:RuntimeError: Error running hostname: No such file or directory
Created attachment 627764 [details]
Created attachment 627765 [details]
Created attachment 627766 [details]
Created attachment 627767 [details]
Created attachment 627768 [details]
Created attachment 627769 [details]
Created attachment 627770 [details]
It turned out that the "hostname" package wasn't pulled into the installation image (a netinstall iso). I used a custom kickstart file but didn't explicitely remove this package. I also see that it's not in the dependencies for anaconda.
I was wondering if there is some very basic software group that pulls in all packages for anaconda to work properly. Maybe this should be defined as a dependency when building a netinstall image?
You need fc91b6c68ad151ff7e636093d766a04f71644c9f from anaconda master, or add it to your kickstart file.
That was quite easy. Can some pull this into the f17-branch and recompile the package? I'm sure there are also others that can come accross this.
We don't do updates to anaconda, as that would set an expectation of respun release with updates.
Just include hostname in your kickstart file and you'll be fine.
I see but maybe there is another temporary solution for f17 like making hostname a dependency for another package that is alreay a dependency for anaconda-f17 like for example dhclient?
What about setting the package in the anaconda-tools-group in copms-f17.xml.in?