File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,17 @@ 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. Further, the labels on the object store are managed
140
+ by bootc and should not generally be changed by external tooling.
141
+
142
+ Most typically, you instead want to only relabel targeted subdirectories
143
+ of ` /etc ` and ` /var ` . This can be done via a systemd unit, e.g.
144
+ ` ExecStart=restorecon -R v /var/lib/mysql ` .
145
+
135
146
### Toplevel directories
136
147
137
148
In particular, a common problem is that inside a container image,
You can’t perform that action at this time.
0 commit comments