Changes

From SME Server
Jump to navigationJump to search
4,453 bytes added ,  07:33, 20 May 2016
Line 259: Line 259:  
   /bin/sed -i -e "s|packagedir =.*|packagedir = Packages|" $(pwd)/$distarch/.treeinfo
 
   /bin/sed -i -e "s|packagedir =.*|packagedir = Packages|" $(pwd)/$distarch/.treeinfo
   −
===SME Server 9===
+
===Prepare SME Server 10===
 +
 
 +
===='''Local Only''': Update local mirror as seen by the chroot====
 +
'''Local Only'''
 +
rsync -av --delete --progress ~/smeserver/releases/9/ /build/smeserver/repo/9
 +
 
 +
====Create release specific folder and link (or rename the 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/9.1/{SRPMS,i386,x86_64}
 +
cd /build/smeserver/stage/
 +
rm -f 9
 +
ln -s 9.1 9
 +
 
 +
'''Local Only'''
 +
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/sme9/ /build/smeserver/stage/9/x86_64/
 +
rsync -a --delete --delete-excluded --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme9/ /build/smeserver/stage/9/i386/
 +
rsync -a --delete --delete-excluded --exclude 'CVS/' ~/cdrom.image/sme9/isolinux/ /build/smeserver/stage/extra/isolinux/9/
 +
 
 +
====OR Refresh cdrom content====
 +
If only refreshing the files, then remove the delete.
 +
 
 +
rsync -a --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme9/ /build/smeserver/stage/9/x86_64/
 +
rsync -a --exclude 'CVS/' --exclude 'isolinux/' ~/cdrom.image/sme9/ /build/smeserver/stage/9/i386/
 +
rsync -a --exclude 'CVS/' ~/cdrom.image/sme9/isolinux/ /build/smeserver/stage/extra/isolinux/9/
 +
 
 +
====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/9/i386
 +
ln -s Packages/ SME
 +
mkdir -p /build/smeserver/stage/9/i386/repodata/
 +
mkdir -p /build/smeserver/stage/9/i386/updates/po
 +
mkdir -p /build/smeserver/stage/9/i386/updates/textw
 +
mkdir -p /build/smeserver/stage/9/i386/updates/iw
 +
mkdir -p /build/smeserver/stage/9/i386/updates/storage/devicelibs
 +
 
 +
* x86_64
 +
cd /build/smeserver/stage/9/x86_64
 +
ln -s Packages/ SME
 +
mkdir -p /build/smeserver/stage/9/x86_64/repodata/
 +
mkdir -p /build/smeserver/stage/9/x86_64/updates/po
 +
mkdir -p /build/smeserver/stage/9/x86_64/updates/textw
 +
mkdir -p /build/smeserver/stage/9/x86_64/updates/iw
 +
mkdir -p /build/smeserver/stage/9/x86_64/updates/storage/devicelibs
 +
 
 +
* other directories
 +
mkdir -p /build/smeserver/stage/iso/9/i386
 +
mkdir -p /build/smeserver/stage/iso/9/x86_64
 +
mkdir -p /build/smeserver/stage/iso/9/source
 +
 
 +
====Copy anaconda translations====
 +
Anaconda translations need copying to /updates/po from ~/anaconda-po
 +
cp -R ~/anaconda-po/translate.koozali.org/anaconda/sme9/* /build/smeserver/stage/9/i386/updates/po/
 +
cp -R ~/anaconda-po/translate.koozali.org/anaconda/sme9/* /build/smeserver/stage/9/x86_64/updates/po/
 +
 
 +
====Copy anaconda content====
 +
See ~/cdrom.image/sme9/updates/README.txt for details of what to copy. The patched anaconda files from ~/rpms/anaconda/sme9 will go to updates directory. The exact directory depends on the anaconda version, eg  ~/rpms/anaconda/sme9/anaconda-13.21.239
 +
cd ~/rpms/anaconda/sme9/
 +
make prep
 +
cd ~/rpms/anaconda/sme9/anaconda-13.21.239
 +
cp -R storage /build/smeserver/stage/9/i386/updates/
 +
cp -R textw/*.py /build/smeserver/stage/9/i386/updates/textw
 +
cp -R iw/*.py /build/smeserver/stage/9/i386/updates/iw
 +
cp *.py /build/smeserver/stage/9/i386/updates
 +
cp lang-table /build/smeserver/stage/9/i386/updates
 +
 
 +
cp -R storage /build/smeserver/stage/9/x86_64/updates/
 +
cp -R textw/*.py /build/smeserver/stage/9/x86_64/updates/textw
 +
cp -R iw/*.py /build/smeserver/stage/9/x86_64/updates/iw
 +
cp *.py /build/smeserver/stage/9/x86_64/updates
 +
cp lang-table /build/smeserver/stage/9/x86_64/updates
 +
 
 +
===='''Local Only''': Hack: Permission Fixup====
 +
This is only needed on local server if permissions are incorrect. It should not be needed.<br />
 +
 
 +
'''Local Only'''
 +
sudo chmod -R a+w /build/smeserver/stage
 +
 
 +
===='''Local Only''': Create stage content====
 +
{{Note box|Note: This step occurs every hours on the buildsys.}}
 +
'''Local Only'''
 +
/build/smeserver/stage/bin/update_repos
 +
 
 +
===Prepare SME Server 9===
    
===='''Local Only''': Update local mirror as seen by the chroot====
 
===='''Local Only''': Update local mirror as seen by the chroot====
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu