Commit fc30af4
committed
base_image: trigger SELinux relabeling for Fedora guests on first boot
Fedora guest images created on Debian hosts fail to boot because the filesystem
lacks proper SELinux contexts. All binaries fail with exit code 127 (command not
found) as SELinux blocks execution of files with unlabeled_t context.
Creating the /.autorelabel file triggers Fedora's automatic SELinux relabeling
on first boot, ensuring all files receive correct contexts before systemd starts
services. This allows Fedora guests to boot successfully when provisioned from
non-SELinux hosts.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 88f94e7 commit fc30af4
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments