File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,18 @@ for handling the `security.selinux` extended attribute in tar
132
132
streams; but this can only currently be done with a custom
133
133
build process.
134
134
135
+ #### Forcing relabeling
136
+
137
+ Some distributions support a `/.autorelabel` file; this will not work
138
+ on a bootc managed system where `/` is immutable state from the base
139
+ image by default. The labels on the files under `/sysroot/ostree` are
140
+ also managed by bootc/ostree and should not be changed by external
141
+ tools.
142
+
143
+ Most typically, you instead want to only relabel targeted subdirectories
144
+ of `/etc` and `/var`. This can be done via a systemd unit, e.g.
145
+ `ExecStart=restorecon -R -v /var/lib/mysql`.
146
+
135
147
### Toplevel directories
136
148
137
149
In particular, a common problem is that inside a container image,
You can’t perform that action at this time.
0 commit comments