You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is used by the [Fedora base image](https://gitlab.com/fedora/bootc/base-images).
36
34
37
-
The first method is most direct, as it streamlines the process of
38
-
creating a base image and writing to a registry. The second method
39
-
may be preferable if you already have a build process that produces `ostree`
40
-
commits as an output (e.g. using [osbuild](https://www.osbuild.org/guides/image-builder-on-premises/building-ostree-images.html)
41
-
to produce `ostree` commit artifacts.)
35
+
## Standard image content
42
36
43
-
The requirement for both methods is that your initial treefile/manifest
44
-
**MUST** include the `bootc` package in list of packages included in your compose.
45
-
46
-
However, the ostree usage is an implementation detail
47
-
and the requirement on this will be lifted in the future.
37
+
The bootc project provides a [baseimage](../../baseimage) reference
38
+
set of configuration files for base images. In particular at
39
+
the current time the content defined by `base` must be used
40
+
(or recreated). There is also suggested integration there with
41
+
e.g. `dracut` to ensure the initramfs is set up, etc.
48
42
49
43
## Standard metadata for bootc compatible images
50
44
@@ -56,7 +50,7 @@ LABEL containers.bootc 1
56
50
57
51
This will signal that this image is intended to be usable with `bootc`.
58
52
59
-
# Deriving from existing base images
53
+
##Deriving from existing base images
60
54
61
55
It's important to emphasize that from one
62
56
of these specially-formatted base images, every
@@ -82,20 +76,22 @@ Bootc will take care of copying the kernel/initramfs as needed from the containe
82
76
83
77
Future work for supporting UKIs will follow the recommendations of the uapi-group in [Locations for Distribution-built UKIs Installed by Package Managers](https://uapi-group.org/specifications/specs/unified_kernel_image/#locations-for-distribution-built-ukis-installed-by-package-managers).
84
78
79
+
The `bootc container lint` command will check this.
80
+
85
81
## The `ostree container commit` command
86
82
87
83
You may find some references to this; it is no longer very useful
88
84
and is not recommended.
89
85
90
-
# The bootloader setup
86
+
##The bootloader setup
91
87
92
88
At the current time bootc relies on the [bootupd](https://github.com/coreos/bootupd/)
93
89
project which handles bootloader installs and upgrades. The invocation of
94
90
`bootc install` will always run `bootupd` to perform installations.
95
91
Additionally, `bootc upgrade` will currently not upgrade the bootloader;
96
92
you must invoke `bootupctl update`.
97
93
98
-
# SELinux
94
+
##SELinux
99
95
100
96
Container runtimes such as `podman` and `docker` commonly
101
97
apply a "coarse" SELinux policy to running containers.
@@ -108,9 +104,9 @@ and there are no individually distinct e.g. `etc_t` and
108
104
`usr_t` types.
109
105
110
106
In contrast, with the current OSTree backend for bootc,
111
-
when the base image is built, label metadata is included
112
-
in special metadata files in `/sysroot/ostree` that correspond
113
-
to components of the base image.
107
+
it is possible to include label metadata (and precomputed ostree
108
+
checksums) in special metadata files in `/sysroot/ostree` that correspond
109
+
to components of the base image. This is optional as of bootc v1.1.3.
114
110
115
111
File content in derived layers will be labeled using the default file
116
112
contexts (from `/etc/selinux`). For example, you can do this (as of
@@ -152,13 +148,7 @@ References:
152
148
153
149
It is strongly recommended to enable the ostree composefs
154
150
backend (but not strictly required) for bootc.
155
-
Do so by ensuring you have this in your `/usr/lib/ostree/prepare-root.conf`:
156
151
157
-
```
158
-
[composefs]
159
-
enabled = yes
160
-
[sysroot]
161
-
readonly = true
162
-
```
152
+
A reference enablement file to do so is in the [baseimage/base](../../baseimage/base).
163
153
164
154
More in [ostree-prepare-root](https://ostreedev.github.io/ostree/man/ostree-prepare-root.html).
0 commit comments