From 4d5ec985258a295e4bc61aaa99ba64203d4f2a5f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 14 May 2020 18:24:35 -0400 Subject: [PATCH] Correct SELinux context for firstboot This permits the script to actually run at firstboot, even if SELinux is on. --- confluent_osdeploy/el8/profiles/default/kickstart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/kickstart b/confluent_osdeploy/el8/profiles/default/kickstart index 54cfd07a..f5ab4aa6 100644 --- a/confluent_osdeploy/el8/profiles/default/kickstart +++ b/confluent_osdeploy/el8/profiles/default/kickstart @@ -26,15 +26,12 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/post.sh > /tmp/postins # Hook firstboot.sh curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.service > /mnt/sysimage/etc/systemd/system/firstboot.service -curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.sh > /mnt/sysimage/etc/confuent/firstboot.sh +curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.sh > /mnt/sysimage/etc/confluent/firstboot.sh chmod +x /mnt/sysimage/etc/confluent/firstboot.sh - -chmod 664 /etc/systemd/system/runonce.service -systemctl enable runonce %end %post systemctl enable firstboot chgrp ssh_keys /etc/ssh/ssh*key -restorecon /etc/ssh/ssh*key /root/.shosts /etc/ssh/shosts.equiv /etc/ssh/ssh_config.d/* +restorecon /etc/ssh/ssh*key /root/.shosts /etc/ssh/shosts.equiv /etc/ssh/ssh_config.d/* /etc/confluent/firstboot.sh %end