Difference between revisions of "stoney cloud: Switch to testing branch"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Migrating from FOSS-Cloud)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Login as root and execute the following to switch a stoney cloud installation from stable (''releases'') to testing (''pre-releases''). If you are migrating from a FOSS-Cloud (or have an early stoney cloud), please read below.
+
Login as root and execute the following to switch a stoney cloud installation from stable (''releases'') to testing (''pre-releases''). If you are migrating from a FOSS-Cloud (or have an early stoney cloud), please read below and skip this step here.
  
 
<source lang='bash'>
 
<source lang='bash'>
Line 24: Line 24:
 
cd /usr/portage
 
cd /usr/portage
 
git remote -v
 
git remote -v
 +
</source>
 +
which should give the following if you are on FOSS-Cloud (or have an early stone cloud)
 +
<pre>
 +
origin https://github.com/FOSS-Cloud/portage.git (fetch)
 +
origin https://github.com/FOSS-Cloud/portage.git (push)
 +
</pre>
  
 +
<source lang='bash'>
 
cd /var/lib/layman/foss-cloud
 
cd /var/lib/layman/foss-cloud
 
git remote -v
 
git remote -v
 
</source>
 
</source>
 
 
which should give the following if you are on FOSS-Cloud (or have an early stone cloud)
 
which should give the following if you are on FOSS-Cloud (or have an early stone cloud)
 
<pre>
 
<pre>
~ # cd /usr/portage
 
~ # git remote -v
 
origin https://github.com/FOSS-Cloud/portage.git (fetch)
 
origin https://github.com/FOSS-Cloud/portage.git (push)
 
~ # cd /var/lib/layman/foss-cloud
 
~ # git remote -v
 
 
origin https://github.com/FOSS-Cloud/portage-overlay.git (fetch)
 
origin https://github.com/FOSS-Cloud/portage-overlay.git (fetch)
 
origin https://github.com/FOSS-Cloud/portage-overlay.git (push)
 
origin https://github.com/FOSS-Cloud/portage-overlay.git (push)
~ #
 
 
</pre>
 
</pre>
  
If the output matches, run the following:
+
If the output matches, run the following instead of the commands above to directly switch from whatever FOSS-Cloud/stoney cloud you have to a testing (''pre-releases'') stoney cloud:
 
<source lang='bash'>
 
<source lang='bash'>
rm -rf /usr/portage /var/lib/layman/foss-cloud
+
rm -rf /usr/portage/* /usr/portage/.git /var/lib/layman/foss-cloud/* /var/lib/layman/foss-cloud/.git
 
+
git clone https://github.com/FOSS-Cloud/portage.git /usr/portage
+
git clone https://github.com/FOSS-Cloud/portage-overlay.git /var/lib/layman/foss-cloud
+
  
 
cd /usr/portage
 
cd /usr/portage
git checkout 1.2-pre
+
git init
cd /var/lib/layman/foss-cloud
+
git remote add -t "1.2-pre" origin "https://github.com/stepping-stone/portage.git"
git checkout 1.2-pre
+
git checkout --orphan "1.2-pre"
 +
cat >> .git/config << EOF
 +
[branch "1.2-pre"]
 +
  remote = origin
 +
  merge = refs/heads/1.2-pre
 +
EOF
 +
chown -R portage\: .
  
chown -R portage\: /usr/portage /var/lib/layman/foss-cloud
+
cd /var/lib/layman/foss-cloud
 +
git init
 +
git remote add -t "1.2-pre" origin "https://github.com/stepping-stone/portage-overlay.git"
 +
git checkout --orphan "1.2-pre"
 +
cat >> .git/config << EOF
 +
[branch "1.2-pre"]
 +
  remote = origin
 +
  merge = refs/heads/1.2-pre
 +
EOF
 +
chown -R portage\: .
 
</source>
 
</source>
  
 +
If using binary packages, you have to update the mirror configuration in <code>/etc/portage/make.conf</code> as well, as described in [[stoney cloud: Upgrade]]
  
  
 
[[Category:Installation]]
 
[[Category:Installation]]
 
[[Category:stoney cloud]]
 
[[Category:stoney cloud]]

Latest revision as of 16:11, 19 December 2013

Login as root and execute the following to switch a stoney cloud installation from stable (releases) to testing (pre-releases). If you are migrating from a FOSS-Cloud (or have an early stoney cloud), please read below and skip this step here.

branch="1.2-pre"
 
cd /usr/portage
git remote set-branches --add origin "${branch}"
git pull --rebase
git checkout "${branch}"
chown -R portage\: .
 
cd /var/lib/layman/foss-cloud
git remote set-branches --add origin "${branch}"
git pull --rebase
git checkout "${branch}"
chown -R portage\: .

Migrating from FOSS-Cloud

When coming from FOSS-Cloud or an early stoney cloud, it is necessary to switch the portage and portage-overlay to point to stoney cloud. To figure out, whether this is your case execute the following:

cd /usr/portage
git remote -v

which should give the following if you are on FOSS-Cloud (or have an early stone cloud)

origin	https://github.com/FOSS-Cloud/portage.git (fetch)
origin	https://github.com/FOSS-Cloud/portage.git (push)
cd /var/lib/layman/foss-cloud
git remote -v

which should give the following if you are on FOSS-Cloud (or have an early stone cloud)

origin	https://github.com/FOSS-Cloud/portage-overlay.git (fetch)
origin	https://github.com/FOSS-Cloud/portage-overlay.git (push)

If the output matches, run the following instead of the commands above to directly switch from whatever FOSS-Cloud/stoney cloud you have to a testing (pre-releases) stoney cloud:

rm -rf /usr/portage/* /usr/portage/.git /var/lib/layman/foss-cloud/* /var/lib/layman/foss-cloud/.git
 
cd /usr/portage
git init
git remote add -t "1.2-pre" origin "https://github.com/stepping-stone/portage.git"
git checkout --orphan "1.2-pre"
cat >> .git/config << EOF
[branch "1.2-pre"]
  remote = origin
  merge = refs/heads/1.2-pre
EOF
chown -R portage\: .
 
cd /var/lib/layman/foss-cloud
git init
git remote add -t "1.2-pre" origin "https://github.com/stepping-stone/portage-overlay.git"
git checkout --orphan "1.2-pre"
cat >> .git/config << EOF
[branch "1.2-pre"]
  remote = origin
  merge = refs/heads/1.2-pre
EOF
chown -R portage\: .

If using binary packages, you have to update the mirror configuration in /etc/portage/make.conf as well, as described in stoney cloud: Upgrade