Line 25: |
Line 25: |
| | | |
| mkdir -p /build/smeserver/stage/$VERSION/{SRPMS,x86_64} | | mkdir -p /build/smeserver/stage/$VERSION/{SRPMS,x86_64} |
− | mkdir -p /build/smeserver/stage/$VERSION/x86_64/{Packages,EFI,images,isolinux,LiveOS,repodata,repoview,updates,product} | + | mkdir -p /build/smeserver/stage/$VERSION/x86_64/{Packages,EFI,images,isolinux,LiveOS,repodata,repoview,updates,product,netinstall} |
| mkdir -p /build/smeserver/stage/$VERSION/x86_64/Packages/base | | mkdir -p /build/smeserver/stage/$VERSION/x86_64/Packages/base |
| mkdir -p /build/smeserver/stage/$VERSION/x86_64/images/pxeboot | | mkdir -p /build/smeserver/stage/$VERSION/x86_64/images/pxeboot |
Line 40: |
Line 40: |
| wget <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/initrd.img</nowiki> <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz</nowiki> | | wget <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/initrd.img</nowiki> <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz</nowiki> |
| | | |
− | Prepare to build the product.img. There should be some pictures to copy from previous builds. SOme modification from anaconda | + | Prepare to build the product.img. There should be some pictures to copy from previous builds. Some modification from anaconda |
| | | |
| cd /build/smeserver/stage/$VERSION/x86_64/product/ | | cd /build/smeserver/stage/$VERSION/x86_64/product/ |
| rsync -arv /build/smeserver/repo/testing/$VERPREV/smeos/x86_64/product /build/smeserver/stage/$VERSION/x86_64/ | | rsync -arv /build/smeserver/repo/testing/$VERPREV/smeos/x86_64/product /build/smeserver/stage/$VERSION/x86_64/ |
− |
| |
− | alter anaconda (considering your have your cvs configured to ~/smeserver/rpms):
| |
− | pushd ~/smeserver/rpms/anaconda/sme10/
| |
− | prepa
| |
− | popd
| |
− | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/bootloader.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/
| |
− | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/installclasses/{fedora,centos,koozali}.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/installclasses/
| |
− | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/packaging/yumpayload.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/packaging/
| |
− | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py /build/smeserver/stage/$VERSION/x86_64/product/run/install/product/pyanaconda/installclasses/
| |
| | | |
| make any needed modification in the product image. at least update the release version | | make any needed modification in the product image. at least update the release version |
Line 86: |
Line 77: |
| ====Create cdrom content==== | | ====Create cdrom content==== |
| | | |
− | '''WIP: From there on with SME 10, we are simply copying EFI, LiveOS, isolinux, images folders from CentOS or previous version.''' | + | '''WIP: From there on with SME 10, we are copying EFI, LiveOS, isolinux, images folders from CentOS or previous version and add over some files from CVS or rebuild some img files.''' |
| | | |
| '''this has to be done before building product.img and put it in images. Also you will have to update the isolinux.cfg content.''' | | '''this has to be done before building product.img and put it in images. Also you will have to update the isolinux.cfg content.''' |
Line 95: |
Line 86: |
| #isolinux{boot.msg, help.txt,isolinux.cfg} | | #isolinux{boot.msg, help.txt,isolinux.cfg} |
| #updates/README.txt'''}} | | #updates/README.txt'''}} |
− | {{Warning box|'''Note that this would remove everything else out of the target directory, eg translations.'''}}
| |
− | Also note that the isolinux content goes into a temporary directory, /build/smeserver/stage/extra/isolinux/
| |
− | cd ~/smeserver
| |
− | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver co -P cdrom.image
| |
− |
| |
− | rsync -av --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/smeserver/cdrom.image/sme10/ /build/smeserver/stage/$VER/x86_64/
| |
− | rsync -av --delete --delete-excluded --exclude 'CVS/' ~/smeserver/cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/$VER/
| |
| | | |
− | ====OR Refresh cdrom content==== | + | ==== Refresh cdrom content==== |
| If only refreshing the files, then remove the delete. | | If only refreshing the files, then remove the delete. |
| cd ~/smeserver | | cd ~/smeserver |
| cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver co -P cdrom.image | | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver co -P cdrom.image |
| | | |
− | rsync -av --exclude 'CVS/' --exclude 'isolinux/' ~/smeserver/cdrom.image/sme10/ /build/smeserver/stage/$VER/x86_64/ | + | rsync -av --exclude 'CVS/' ~/smeserver/cdrom.image/sme10/ /build/smeserver/stage/$VER/x86_64/ |
| rsync -av --exclude 'CVS/' ~/smeserver/cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/$VER/ | | rsync -av --exclude 'CVS/' ~/smeserver/cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/$VER/ |
| | | |
| ====Create the remaining folders==== | | ====Create the remaining folders==== |
− | {{Note box|Note: images and isolinux do not need to be created as they are removed anyway in build_installer}} | + | {{Note box|Note: TO DO translations in the updates image or move to product ?}} |
| | | |
| * x86_64 | | * x86_64 |
Line 132: |
Line 116: |
| See ~/smeserver/cdrom.image/sme10/updates/README.txt for details of what to copy. The patched anaconda files from ~/smeserver/rpms/anaconda/sme10 will go to updates directory. The exact directory depends on the anaconda version, eg ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.56 | | See ~/smeserver/cdrom.image/sme10/updates/README.txt for details of what to copy. The patched anaconda files from ~/smeserver/rpms/anaconda/sme10 will go to updates directory. The exact directory depends on the anaconda version, eg ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.56 |
| | | |
− | The following needs to be done on builder 7
| + | pushd ~/smeserver/rpms/anaconda/sme10/ |
− | cd ~/smeserver/rpms/anaconda/sme10/ | |
| cvs update -dPA | | cvs update -dPA |
| make prep | | make prep |
− | cd ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.56 | + | popd |
− | | + | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/bootloader.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/ |
− | '''this does not work and need to be updated.'''
| + | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/installclasses/{fedora,centos,koozali}.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/installclasses/ |
| + | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/packaging/yumpayload.py /build/smeserver/stage/$VERSION/x86_64/product/usr/lib64/python2.7/site-packages/pyanaconda/packaging/ |
| + | cp ~/smeserver/rpms/anaconda/sme10/anaconda-21.48.22.158/pyanaconda/installclasses/koozali.py /build/smeserver/stage/$VERSION/x86_64/product/run/install/product/pyanaconda/installclasses/ |
| | | |
− | cp -R storage /build/smeserver/stage/10/x86_64/updates/
| |
− | cp -R textw/*.py /build/smeserver/stage/10/x86_64/updates/textw
| |
− | cp -R iw/*.py /build/smeserver/stage/10/x86_64/updates/iw
| |
− | cp *.py /build/smeserver/stage/10/x86_64/updates
| |
− | cp lang-table /build/smeserver/stage/10/x86_64/updates
| |
| | | |
| ===='''Local Only''': Hack: Permission Fixup==== | | ===='''Local Only''': Hack: Permission Fixup==== |