Calling yum from within a kickstart file in fc6pre
Jeff Vian
jvian10 at charter.net
Wed Oct 11 21:07:57 UTC 2006
On Wed, 2006-10-11 at 17:35 +0200, Mogens Kjaer wrote:
> For FC <= 5, I could call yum during the
> kickstart installation from the %post section.
>
> When I do this in FC6-pre, I get the following error:
>
> /usr/bin/yum -y install nautilus-open-terminal
> Traceback (most recent call last):
> File "/usr/bin/yum", line 29, in ?
> yummain.main(sys.argv[1:])
> File "/usr/share/yum-cli/yummain.py", line 85, in main
> base.getOptionsConfig(args)
> File "/usr/share/yum-cli/cli.py", line 192, in getOptionsConfig
> errorlevel=opts.errorlevel)
> File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 123, in
> doConfigSetup
> self.doLoggingSetup(startupconf.debuglevel, startupconf.errorlevel)
> File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 147, in
> doLoggingSetup
> logginglevels.doLoggingSetup(debuglevel, errorlevel)
> File "/usr/lib/python2.4/site-packages/yum/logginglevels.py", line
> 116, in doLoggingSetup
> syslog = logging.handlers.SysLogHandler(log_dev)
> File "/usr/lib/python2.4/logging/handlers.py", line 601, in __init__
> self._connect_unixsocket(address)
> File "/usr/lib/python2.4/logging/handlers.py", line 617, in
> _connect_unixsocket
> self.socket.connect(address)
> File "<string>", line 1, in connect
> socket.error: (111, 'Connection refused')
> Error in atexit._run_exitfuncs:
> Traceback (most recent call last):
> File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
> func(*targs, **kargs)
> File "/usr/lib/python2.4/logging/__init__.py", line 1333, in shutdown
> h.close()
> File "/usr/lib/python2.4/logging/handlers.py", line 642, in close
> if self.unixsocket:
> AttributeError: SysLogHandler instance has no attribute 'unixsocket'
> Error in sys.exitfunc:
> Traceback (most recent call last):
> File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
> func(*targs, **kargs)
> File "/usr/lib/python2.4/logging/__init__.py", line 1333, in shutdown
> h.close()
> File "/usr/lib/python2.4/logging/handlers.py", line 642, in close
> if self.unixsocket:
> AttributeError: SysLogHandler instance has no attribute 'unixsocket'
>
> I've repeated it several times, always the same error.
>
> It works fine after installation, no "connection refused".
>
Just a thought.
Is the network interface up, fully configured, and active when you are
trying to run yum? Is DNS functional so yum can reach the repos?
> - or is there a smarter way of doing this?
>
Maybe it should be set to run in firstboot? or at first login by root?
> Mogens
>
> --
> Mogens Kjaer, Carlsberg A/S, Computer Department
> Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
> Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
> Email: mk at crc.dk Homepage: http://www.crc.dk
>
More information about the test
mailing list