Bug 862256

Summary: IOError: [Errno 2] No such file or directory: '/tmp/lorax.FGoV2J/installtree/usr/share/anaconda/lang-table'
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: loraxAssignee: Martin Gracik <mgracik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, bcl, dmach, mgracik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-02 13:21:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Páral 2012-10-02 13:15:30 UTC
Description of problem:
$ sudo lorax -p fedora -v foo -r bar -s http://download.eng.brq.redhat.com/pub/fedora/linux/development/18/x86_64/os/ -s http://download.eng.brq.redhat.com/pub/fedora/linux/updates/testing/18/x86_64/ out
checking for root privileges
checking yum base object
setting up build architecture
setting up build parameters
installing runtime packages
got release: fedora-release
running runtime-install.tmpl
installpkg NetworkManager-gnome failed: No package(s) available to install
installpkg specspo failed: No package(s) available to install
Package eject is obsoleted by util-linux, trying to install util-linux-2.22-1.fc18.x86_64 instead
downloading packages
<snip>
checking package signatures
running test transaction
Running Transaction Check
running transaction
<snip>
writing .buildstamp file
doing post-install configuration
running runtime-postinstall.tmpl
template command error in runtime-postinstall.tmpl:
  copy usr/share/anaconda/lang-table etc
  IOError: [Errno 2] No such file or directory: '/tmp/lorax.FGoV2J/installtree/usr/share/anaconda/lang-table'
Traceback (most recent call last):
  File "/sbin/lorax", line 223, in <module>
    main(sys.argv)
  File "/sbin/lorax", line 131, in main
    volid=opts.volid, domacboot=opts.domacboot, remove_temp=True)
  File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 214, in run
    rb.postinstall()
  File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line 123, in postinstall
    self._runner.run("runtime-postinstall.tmpl", configdir=configdir_path)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 136, in run
    self._run(commands)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 155, in _run
    f(*args)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 294, in copy
    cpfile(self._out(src), self._out(dest))
  File "/usr/lib/python2.7/site-packages/pylorax/sysutils.py", line 89, in cpfile
    shutil.copy2(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 128, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/tmp/lorax.FGoV2J/installtree/usr/share/anaconda/lang-table'


Version-Release number of selected component (if applicable):
lorax-17.27-1.fc17.x86_64

How reproducible:
always

Comment 1 Brian Lane 2012-10-02 13:21:50 UTC
You need to use the matching release to build with. So to build f18 use the f18 release of lorax.