Changes

From SME Server
Jump to navigationJump to search
117 bytes added ,  16:07, 31 December 2014
no edit summary
Line 24: Line 24:  
  ~/rpms is rpms from CVS
 
  ~/rpms is rpms from CVS
   −
====mock plugin : iso_prepare====
+
===='''Local Only''': mock plugin : iso_prepare====
 
You have to install a new plugin for mock : Iso_prepare<br />
 
You have to install a new plugin for mock : Iso_prepare<br />
   Line 30: Line 30:  
  sudo vim  /usr/lib/python2.6/site-packages/mockbuild/plugins/iso_prepare.py
 
  sudo vim  /usr/lib/python2.6/site-packages/mockbuild/plugins/iso_prepare.py
   −
====update_repos====
+
===='''Local Only''': update_repos====
 
update_repos relies on RPM2 which can be found as an RPM.
 
update_repos relies on RPM2 which can be found as an RPM.
 
  yum install perl-RPM2 --enablerepo=epel
 
  yum install perl-RPM2 --enablerepo=epel
Line 54: Line 54:  
  /bin/cp ~/builds_bin/* /build/smeserver/stage/bin
 
  /bin/cp ~/builds_bin/* /build/smeserver/stage/bin
   −
====Mock Special Settings====
+
===='''Local Only''': Mock Special Settings====
 
{{Note box|Due to local settings you have to edit each configuration of mock and edit '''smeserver-X-{i386,x86_64}-iso.cfg''' files to include /build in the chroot}}
 
{{Note box|Due to local settings you have to edit each configuration of mock and edit '''smeserver-X-{i386,x86_64}-iso.cfg''' files to include /build in the chroot}}
 
:''These are the changes that you need to made if you do not have the nfs mounts on my local machine
 
:''These are the changes that you need to made if you do not have the nfs mounts on my local machine
Line 64: Line 64:  
  #config_opts['plugin_conf']['mount_opts']['dirs'].append(('storage:/mirrors', '/mirrors', 'nfs', 'defaults,noatime,nodiratime,nosuid'))
 
  #config_opts['plugin_conf']['mount_opts']['dirs'].append(('storage:/mirrors', '/mirrors', 'nfs', 'defaults,noatime,nodiratime,nosuid'))
 
  config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/build', '/build' ))
 
  config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/build', '/build' ))
 
+
Eg:
====Patch a Mock Plugin====
+
vim /etc/mock/smeserver-9-x86_64-iso.cfg
 +
===='''Local Only''': Patch a Mock Plugin====
 
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
  

Navigation menu