Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14367

Summary: `emerge grub` causes traceback
Product: Portage Development Reporter: SpanKY <vapier>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED INVALID    
Severity: normal CC: h3y
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2003-01-22 08:43:51 UTC
pregame info:
 * Your boot partition was detected as being mounted as /boot.
 * Files will be installed there for grub to function correctly.
root@rux0r root # mount | grep boot
/dev/hda1 on /boot type ext3 (rw,data=writeback)

emerge output:
>>> /sbin/grub
>>> /sbin/grub-install
>>> /sbin/grub-md5-crypt
>>> /sbin/grub-terminfo
--- /bin/
>>> /bin/mbchk
--- /boot/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1571, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 921, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1309, in doebuild
    return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1539, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4033, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3745, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3913, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3907, in mergeme
    os.mkdir(mydest)
OSError: [Errno 17] File exists: '/boot/grub'

the end result is i have a /var/db/pkg/sys-apps/grub-0.93.20030118 directory
but no files in it ...
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-01-23 14:20:10 UTC
You should _not_ be journalling /boot.
Make it sync if you're worried about it.

Portage is not getting the mode for that dir. Either
something funky is going on with your partition/inodes
or something freaky is going on with python/glibc.
Comment 2 SpanKY gentoo-dev 2003-01-23 23:29:14 UTC
i made ext3 outta habit ...
oh and the partition is semi-messed up ... so dont worry about it ;)