Skip to content

Commit

Permalink
Make prepare4image.sh remove only puppet data cache directories
Browse files Browse the repository at this point in the history
This avoids having Puppet recompiling and reinstalling SELinux policies
that have already been installed, saving a few minutes when booting
from an image.
  • Loading branch information
cmd-ntrf committed Aug 27, 2024
1 parent 1ba3a12 commit 4f92cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/profile/files/base/prepare4image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rm -f /var/log/ipaclient-install.log
rm -rf /etc/sssd/sssd.conf.deleted

rm -rf /etc/puppetlabs
rm -rf /opt/puppetlabs/puppet/cache
rm -rf /opt/puppetlabs/puppet/cache/{clientbucket,client_data,client_yaml,state}
rm /opt/consul/node-id /opt/consul/checkpoint-signature /opt/consul/serf/local.snapshot

# Turn off swap
Expand Down

0 comments on commit 4f92cd8

Please sign in to comment.