Browse code

Intro to ostree server and host installation and basic commands

Touseef Liaqat authored on 2015/07/30 08:25:23
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+# What is OSTree and RPM-OSTree
1
+OSTree is a tool for managing bootable, immutable, versioned filesystem trees.
2
+
3
+## Photon RPM-OSTree Server
4
+During installation from Photon ISO you can select "Photon RPM-OSTree Server" option that will install Photon with RPM-OSTree components and a minimal repo from which RPM-OSTree Hosts could be created.
5
+
6
+On RPM-OSTree Server the repo is created at following location.
7
+```
8
+/srv/rpm-ostree/repo
9
+```
10
+Following is the base configuration file used to create the repo.
11
+```
12
+/srv/rpm-ostree/photon-base.json
13
+```
14
+### Updating RPM-OSTree repo image
15
+
16
+You can add/remove package from photon-base.json file and then run following command to update the repo with new commit.
17
+```
18
+cd /srv/rpm-ostree
19
+rpm-ostree compose tree --repo=/srv/rpm-ostree/repo photon-base.json
20
+```
21
+
22
+Above command will create a new commit that will have your package related changes in it.
23
+
24
+### Changing the RPM repo
25
+Following is the rpm repo file being used for fetching RPMs by the rpm-ostree command to create the ostree repo. Change this file to point to different rpm repo than the default Photon repo.
26
+
27
+```
28
+/srv/rpm-ostree/photon-ostree.json
29
+```
30
+
31
+## RPM-OSTree Host
32
+
33
+OSTree host is the installation of Photon that retrives the images from RPM-OSTree server during installation. It can get atomic updates from the same server in its life time.
34
+
35
+## Upgrading the Host installations
36
+
37
+Host machines created from RPM-OSTree server can run following commands to upgrade their Host machine to the latest version from RPM-OSTree server.
38
+
39
+```
40
+> ostree pull photon tp2/x86_64/minimal
41
+> rpm-ostree upgrade
42
+> systemctl reboot
43
+```