Skip to content

Commit f715280

Browse files
kingsleyzissoucroissanne
authored andcommitted
v1: first boot scripts after selinux relabel
Ensure that the scripts run after selinux relabeling to avoid being interrupted by a reboot.
1 parent be31624 commit f715280

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/tmpl/aap-first-boot.tmpl.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Description=Ansible Automations Platform first boot registration
33
ConditionFileIsExecutable=/usr/local/sbin/aap-first-boot-reg
44
ConditionPathExists=!/var/local/.aap-first-boot-reg-done
55
Wants=network-online.target
6+
After=selinux-autorelabel.service
67
After=network-online.target
78
After=osbuild-first-boot.service
89

internal/v1/handler_post_compose_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,6 +3190,7 @@ Description=Ansible Automations Platform first boot registration
31903190
ConditionFileIsExecutable=/usr/local/sbin/aap-first-boot-reg
31913191
ConditionPathExists=!/var/local/.aap-first-boot-reg-done
31923192
Wants=network-online.target
3193+
After=selinux-autorelabel.service
31933194
After=network-online.target
31943195
After=osbuild-first-boot.service
31953196
@@ -3284,6 +3285,7 @@ Description=Ansible Automations Platform first boot registration
32843285
ConditionFileIsExecutable=/usr/local/sbin/aap-first-boot-reg
32853286
ConditionPathExists=!/var/local/.aap-first-boot-reg-done
32863287
Wants=network-online.target
3288+
After=selinux-autorelabel.service
32873289
After=network-online.target
32883290
After=osbuild-first-boot.service
32893291

0 commit comments

Comments
 (0)