Line 353: |
Line 353: |
| | | |
| 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} |
| + | mkdir -p /build/smeserver/stage/$VERSION/x86_64/Packages/base |
| + | mkdir -p /build/smeserver/stage/$VERSION/x86_64/images/pxeboot |
| cd /build/smeserver/stage/ | | cd /build/smeserver/stage/ |
| rm -f $VER | | rm -f $VER |
| ln -s $VERSION $VER | | ln -s $VERSION $VER |
− | | + | Get last LiveOS from centos |
| + | cd /build/smeserver/stage/$VERSION/x86_64/LiveOS |
| + | wget <nowiki>http://mirror.centos.org/centos/7/os/x86_64/LiveOS/squashfs.img</nowiki> |
| + | Get CentOS last images content |
| + | cd /build/smeserver/stage/$VERSION/x86_64/Packages/images |
| + | wget <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/boot.iso</nowiki> <nowiki>http://mirror.centos.org/centos/7/os/x86_64/images/efiboot.img</nowiki> |
| + | cd /build/smeserver/stage/$VERSION/x86_64/images/pxeboot |
| + | 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 |
| + | |
| cd /build/smeserver/stage/extra/images/$VER/product/ | | cd /build/smeserver/stage/extra/images/$VER/product/ |
| | | |
| 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 |
− | vim .buildstamp | + | vim .buildstamp |
| + | vim run/install/product/pyanaconda/installclasses/custom.py |
| + | vim run/install/product/pyanaconda/installclasses/koozali.py |
| + | vim usr/lib64/python2.7/site-packages/pyanaconda/installclasses/centos.py |
| + | vim usr/lib64/python2.7/site-packages/pyanaconda/installclasses/koozali.py |
| | | |
| build new product.img and copy it to stage | | build new product.img and copy it to stage |
Line 382: |
Line 398: |
| 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 --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme10/ /build/smeserver/stage/10/x86_64/ | + | rsync -av --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme10/ /build/smeserver/stage/$VER/x86_64/ |
− | rsync -av --delete --delete-excluded --exclude 'CVS/' ~/cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/10/ | + | rsync -av --delete --delete-excluded --exclude 'CVS/' ~/cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/$VER/ |
| | | |
| ====OR Refresh cdrom content==== | | ====OR Refresh cdrom content==== |
Line 390: |
Line 406: |
| 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/' cdrom.image/sme10/ /build/smeserver/stage/10/x86_64/ | + | rsync -av --exclude 'CVS/' --exclude 'isolinux/' cdrom.image/sme10/ /build/smeserver/stage/$VER/x86_64/ |
− | rsync -av --exclude 'CVS/' cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/10/ | + | rsync -av --exclude 'CVS/' cdrom.image/sme10/isolinux/ /build/smeserver/stage/extra/isolinux/$VER/ |
| | | |
| ====Create the remaining folders==== | | ====Create the remaining folders==== |
Line 398: |
Line 414: |
| * x86_64 | | * x86_64 |
| cd /build/smeserver/stage/10/x86_64 | | cd /build/smeserver/stage/10/x86_64 |
− | ln -s Packages/ SME
| |
| mkdir -p /build/smeserver/stage/10/x86_64/repodata/ | | mkdir -p /build/smeserver/stage/10/x86_64/repodata/ |
| mkdir -p /build/smeserver/stage/10/x86_64/updates/po | | mkdir -p /build/smeserver/stage/10/x86_64/updates/po |
Line 406: |
Line 421: |
| | | |
| * other directories | | * other directories |
− | mkdir -p /build/smeserver/stage/iso/10/x86_64 | + | mkdir -p /build/smeserver/stage/iso/$VER/{x86_64,source} |
− | mkdir -p /build/smeserver/stage/iso/10/source
| |
| | | |
| ====Copy anaconda translations==== | | ====Copy anaconda translations==== |