Changes

Jump to navigation Jump to search
491 bytes removed ,  13:27, 29 June 2015
Line 77: Line 77:  
There is also an update to /usr/lib/python2.6/site-packages/mockbuild/mounts.py that needs to happen so loop devices get mounted correctly. Check '''/var/lib/mock/smeserver-VERSION-ARCH/result/root.log''' after '''mock -r smeserver-VERSION-ARCH-iso --init (eg mock -r smeserver-8-i386-iso --init)'''. The mounting of the /dev/loopX should pass (return code 0). If it fails (return code 32) then the patch below is needed on your build host. see http://bugs.contribs.org/show_bug.cgi?id=7675#c61
 
There is also an update to /usr/lib/python2.6/site-packages/mockbuild/mounts.py that needs to happen so loop devices get mounted correctly. Check '''/var/lib/mock/smeserver-VERSION-ARCH/result/root.log''' after '''mock -r smeserver-VERSION-ARCH-iso --init (eg mock -r smeserver-8-i386-iso --init)'''. The mounting of the /dev/loopX should pass (return code 0). If it fails (return code 32) then the patch below is needed on your build host. see http://bugs.contribs.org/show_bug.cgi?id=7675#c61
   −
sudo vim /usr/lib/python2.6/site-packages/mockbuild/mounts.py   
  −
  −
@@ -83,6 +83,9 @@
  −
    decorate(traceLog())
  −
    def mount(self):
  −
+        if not os.path.isdir(self.srcpath) and not os.path.isfile(self.srcpath):
  −
+            mockbuild.util.touch(self.bindpath)
  −
+
  −
        if not self.mounted:
  −
            cmd = ['/bin/mount', '-n',
  −
                    '--bind', self.srcpath, self.bindpath ]
  −
  −
* --[[User:Stephdl|Stephdl]] ([[User talk:Stephdl|talk]]) 18:26, 26 June 2015 (CEST) WIP
   
save as mounts.py.20150626.daniel.berteaud.patch see http://bugs.contribs.org/attachment.cgi?id=5146
 
save as mounts.py.20150626.daniel.berteaud.patch see http://bugs.contribs.org/attachment.cgi?id=5146
 
  --- /usr/lib/python2.6/site-packages/mockbuild/mounts.py 2015-06-04 13:34:04.000000000 +0200
 
  --- /usr/lib/python2.6/site-packages/mockbuild/mounts.py 2015-06-04 13:34:04.000000000 +0200

Navigation menu