Changes

From SME Server
Jump to navigationJump to search
8,872 bytes removed ,  19:46, 26 April 2017
remove SME8 procedure
Line 294: Line 294:  
   /bin/sed -i -e "s|packagedir =.*|packagedir = Packages|" $(pwd)/$distarch/.treeinfo
 
   /bin/sed -i -e "s|packagedir =.*|packagedir = Packages|" $(pwd)/$distarch/.treeinfo
   −
  −
=====For SME8=====
  −
  −
Edit cdrom.image/sme8/updates/installclasses/smeinstallclass.py and remove the "betanag" entry from the dispatch.setStepList list
  −
  −
    def setSteps(self, dispatch):
  −
        dispatch.setStepList(
  −
                "betanag",  <- remove this line
  −
                "language",
  −
                "keyboard",
  −
                "findrootparts",
      
===Prepare SME Server 10===
 
===Prepare SME Server 10===
Line 485: Line 474:       −
===Prepare SME Server 8===
  −
  −
===='''Local Only''': Update local mirror as seen by the chroot====
  −
rsync -av --delete --progress ~/smeserver/releases/8/ /build/smeserver/repo/8/
  −
  −
====Create release specific folder and link (or rename folder)====
  −
The build_installer and build_ISO expect to be run from a directory that points to the head of the stage (ex. /build/stage/8). This is usually a symlink to 8.1 or 8.1beta1. The script fully expands the symlink and pulls off the last element to figure out what version we are going to build.
  −
mkdir -p /build/smeserver/stage/8.2/{SRPMS,i386,x86_64}
  −
cd /build/smeserver/stage/
  −
rm 8
  −
ln -s 8.2 8
  −
  −
mkdir -p /build/smeserver/stage/extra/isolinux/
  −
  −
====Create cdrom content====
  −
When starting from fresh rsync can copy cdrom.image content, it also generates the folder tree.
  −
{{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/
  −
  −
rsync -a --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme8/ /build/smeserver/stage/8/x86_64/
  −
rsync -a --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme8/ /build/smeserver/stage/8/i386/
  −
rsync -a --delete --delete-excluded --exclude 'CVS/' ~/cdrom.image/sme8/isolinux/ /build/smeserver/stage/extra/isolinux/8/
  −
  −
====OR Refresh cdrom content====
  −
If only refreshing the files, then remove the delete.
  −
  −
rsync -a --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme8/ /build/smeserver/stage/8/x86_64/
  −
rsync -a --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme8/ /build/smeserver/stage/8/i386/
  −
rsync -a --exclude 'CVS/' ~/cdrom.image/sme8/isolinux/ /build/smeserver/stage/extra/isolinux/8/
  −
  −
====Create the remaining folders====
  −
{{Note box|Note: images and isolinux do not need to be created as they are removed anyway in build_installer}}
  −
  −
* i386
  −
cd /build/smeserver/stage/8/i386
  −
ln -s SME Packages
  −
mkdir -p /build/smeserver/stage/8/i386/repodata
  −
mkdir -p /build/smeserver/stage/8/i386/updates/po
  −
cp ~/cdrom.image/sme8/SME/base/comps.xml /build/smeserver/stage/8/i386/repodata/
  −
  −
* x86_64
  −
cd /build/smeserver/stage/8/x86_64
  −
ln -s SME Packages
  −
mkdir -p /build/smeserver/stage/8/x86_64/repodata
  −
mkdir -p /build/smeserver/stage/8/x86_64/updates/po
  −
cp ~/cdrom.image/sme8/SME/base/comps.xml /build/smeserver/stage/8/x86_64/repodata/
  −
  −
* other directories
  −
mkdir -p /build/smeserver/stage/iso/8/i386
  −
mkdir -p /build/smeserver/stage/iso/8/x86_64
  −
mkdir -p /build/smeserver/stage/iso/8/source
  −
  −
====Copy anaconda translations====
  −
Anaconda translations need copying to /updates/po from ~/anaconda-po
  −
  −
cp -R ~/anaconda-po/translate.koozali.org/anaconda/sme8/* /build/smeserver/stage/8/i386/updates/po/
  −
cp -R ~/anaconda-po/translate.koozali.org/anaconda/sme8/* /build/smeserver/stage/8/x86_64/updates/po/
  −
  −
====Copy anaconda content====
  −
See ~/cdrom.image/sme8/updates/README.txt for details of what to copy. The patched anaconda files from ~/smeserver/rpms/anaconda/sme8 will go to updates directory. The exact directory depends on the anaconda version,
  −
eg  ~/smeserver/rpms/anaconda/sme8/anaconda-11.1.2.263.  One file (bootloaderInfo.py) also comes from booty. '''Finally lang-names needs to come from the actual anaconda RPM to updates which is a manual step.'''
  −
  −
cd ~/smeserver/rpms/anaconda/sme8/
  −
make prep
  −
cd ~/smeserver/rpms/anaconda/sme8/anaconda-11.1.2.263
  −
cp anaconda bootloader.py findpackageset.py fsset.py instdata.py kickstart.py lang-table language.py packages.py partedUtils.py raid.py upgrade.py yuminstall.py /build/smeserver/stage/8/i386/updates/
  −
cp anaconda bootloader.py findpackageset.py fsset.py instdata.py kickstart.py lang-table language.py packages.py partedUtils.py raid.py upgrade.py yuminstall.py /build/smeserver/stage/8/x86_64/updates/
  −
  −
cd textw
  −
cp confirm_text.py progress_text.py timezone_text.py upgrade_bootloader_text.py upgrade_text.py /build/smeserver/stage/8/i386/updates/
  −
cp confirm_text.py progress_text.py timezone_text.py upgrade_bootloader_text.py upgrade_text.py /build/smeserver/stage/8/x86_64/updates/
  −
  −
cd  ~/smeserver/rpms/booty/sme8/
  −
make prep
  −
cp ~/smeserver/rpms/booty/sme8/booty-0.80.6/bootloaderInfo.py /build/smeserver/stage/8/i386/updates/
  −
cp ~/smeserver/rpms/booty/sme8/booty-0.80.6/bootloaderInfo.py /build/smeserver/stage/8/x86_64/updates/
  −
  −
===='''Local Only''': Hack: Permission Fixup====
  −
This is only needed on local server if permissions are incorrect. '''It should not be needed.'''
  −
* Massage permissions before starting ISO building
  −
'''Local Only'''<br />
  −
  −
sudo chmod -R a+w /build/smeserver/stage
  −
  −
===='''Local Only''': Create stage content====
  −
{{Note box|Note: This step occurs every hours on the buildsys.}}
  −
/build/smeserver/stage/bin/update_repos
      
===Build & Release SME Server 10===
 
===Build & Release SME Server 10===
Line 654: Line 556:  
  popd
 
  popd
   −
===Build & Release SME Server 8===
  −
You can find logs of the related scripts build_ISO and build_installer<br />
     −
If something goes wrong, please verify first
  −
/build/smeserver/stage/8/build_installer.i386
  −
or
  −
/build/smeserver/stage/8/build_installer.x86_64
  −
and after if you have no errors
  −
/build/smeserver/stage/8/build_ISO.i386
  −
or
  −
/build/smeserver/stage/8/build_ISO.x86_64
  −
====Build SME Server 8 32 bit ISO====
  −
mock -r smeserver-8-i386-iso --init
  −
mock -r smeserver-8-i386-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_installer
  −
mock -r smeserver-8-i386-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_ISO
  −
  −
=====local only=====
  −
mock -r smeserver-8-i386-iso --init
  −
mock -r smeserver-8-i386-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_installer
  −
sudo chmod -R a+w /build/smeserver/stage
  −
mock -r smeserver-8-i386-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_ISO
  −
  −
====Build SME Server 8 64 bit ISO====
  −
mock -r smeserver-8-x86_64-iso --init
  −
mock -r smeserver-8-x86_64-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_installer
  −
mock -r smeserver-8-x86_64-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_ISO
  −
=====local only=====
  −
mock -r smeserver-8-x86_64-iso --init
  −
mock -r smeserver-8-x86_64-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_installer
  −
sudo chmod -R a+w /build/smeserver/stage
  −
mock -r smeserver-8-x86_64-iso --mount --cwd /build/smeserver/stage/8 --unpriv --chroot /build/smeserver/stage/bin/build_ISO
      
===Where are My F... ISO===
 
===Where are My F... ISO===
Line 821: Line 693:  
then you can mv from testing to main folder
 
then you can mv from testing to main folder
   −
====SME8====
  −
=====Prepare directory structure for SME8 release=====
  −
SME 8.x test releases will go to /build/smeserver/repo/testing/8. Check that the link points to the correct testing release. Note when uploading Jigdos the ‘8’ link will not be pointing to the new directory.
  −
mkdir -p /build/smeserver/repo/testing/8.1/iso/i386/
  −
mkdir -p /build/smeserver/repo/testing/8.1/iso/source/
  −
mkdir -p /build/smeserver/repo/testing/8.1/iso/x86_64/
  −
mkdir -p /build/smeserver/repo/testing/8.1/smeos/i386/
  −
mkdir -p /build/smeserver/repo/testing/8.1/smeos/SRPMS/
  −
mkdir -p /build/smeserver/repo/testing/8.1/smeos/x86_64/
  −
  −
=====Copy SME Server 8 64 bit Jigdo to mirror=====
  −
/bin/cp -a /build/smeserver/stage/iso/8/x86_64/smeserver-8.1-x86_64.jigdo /build/smeserver/repo/testing/8.1/iso/x86_64/
  −
/bin/cp -a /build/smeserver/stage/iso/8/x86_64/smeserver-8.1-x86_64.template /build/smeserver/repo/testing/8.1/iso/x86_64/
  −
rsync -a --delete /build/smeserver/stage/8/x86_64/ /build/smeserver/repo/testing/8.1/smeos/x86_64/
  −
  −
=====Copy SME Server 8 32 bit Jigdo to mirror=====
  −
/bin/cp -a /build/smeserver/stage/iso/8/i386/smeserver-8.1-i386.jigdo /build/smeserver/repo/testing/8.1/iso/i386/
  −
/bin/cp -a /build/smeserver/stage/iso/8/i386/smeserver-8.1-i386.template /build/smeserver/repo/testing/8.1/iso/i386/
  −
rsync -a --delete /build/smeserver/stage/8/i386/ /build/smeserver/repo/testing/8.1/smeos/i386
  −
  −
=====Copy SME Server 8 SRPMS Jigdo to mirror=====
  −
/bin/cp -a /build/smeserver/stage/iso/8/source/smeserver-8.1-SRPMS.jigdo /build/smeserver/repo/testing/8.1/iso/source/
  −
/bin/cp -a /build/smeserver/stage/iso/8/source/smeserver-8.1-SRPMS.template /build/smeserver/repo/testing/8.1/iso/source/
  −
rsync -a --delete /build/smeserver/stage/8/SRPMS/ /build/smeserver/repo/testing/8.1/smeos/SRPMS
     −
=====Copy SME Server 8 ISOs to mirror=====
  −
rsync -a --delete /build/smeserver/stage/iso/8/ /build/smeserver/repo/testing/8.1/iso
         
[[Category:SME Server Development Framework]]
 
[[Category:SME Server Development Framework]]
 
[[Category:Development Tools]]
 
[[Category:Development Tools]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu