Skip to content

Commit 3bfa077

Browse files
ericzolfachilleas-k
authored andcommitted
on-premises/02-commandline: clarifying certain implicit aspects
Explain how ostreesetup comes to its parameters
1 parent 6b69d2e commit 3bfa077

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/on-premises/02-commandline/building-ostree-images.md

+8
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ ostreesetup --nogpg --url=http://10.0.2.2:8000/repo/ --osname=iot --remote=iot -
9696
For those interested in all the options, you can read [Anaconda’s documentation](https://anaconda-installer.readthedocs.io/en/latest/index.html).
9797

9898
The crucial part is on the last line. Here, `ostreesetup` command is used to fetch the OSTree commit. Now for those wondering about the IP address, this tutorial uses `qemu` to boot the virtual machine and `10.0.2.2` is an address which you can use to reach the host system from the guest: [User Networking](https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29).
99+
Also consider:
100+
101+
* the `osname` is a given, based on the underlying OS,
102+
* the remote name can be any [valid ostree remote name](https://ostreedev.github.io/ostree/man/ostree-remote.html),
103+
* and the reference is the default coming from the underlying OS, based on the pattern `<os>/<major version>/<architecture>/<product>` (we could have overwritten it as we created our commit, by using the `start-ostree` sub-command and its options).
99104

100105
## Setting up an HTTP server
101106

@@ -109,6 +114,9 @@ EXPOSE 80
109114
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]
110115
```
111116

117+
Remember that `ADD *.tar` will unpack the tarball file and that this tarball contains a `/repo/` containing the commit data.
118+
This explains why the `ostreesetup` command in the above kickstart can grab it from an URL ending in `/repo/`.
119+
112120
Make sure you have everything in the build directory (keep in mind that the UUID is random, so it will be different in your case):
113121

114122
```

0 commit comments

Comments
 (0)