AWS builds appears to rerun "everyboot" inithooks over and over?! Not just at boot...
As per subject, AWS (i.e. EC2 AMI) & ISO builds rerun the "everyboot" inithooks (/usr/lib/inithooks/everyboot.d/) every minute!
As inithooks should be idempotent, it shouldn't have any negative impact.
[update] seen in v18.x VM (ISO install) recently. Hasn't been seen it in LXC to date - assume issue is intermittent and/or requires specific circumstance.
@OnGle noted offline that he hasn't yet been able to reproduce this!?
Issue is:
- Our login wrapper runs: a. inithooks b. confconsole c. prints motd d. login
- Confconsole is not run on AWS
- Login will exit after 1 minute IDLE
- Getty will restart the process for a given TTY when it exits.
Note this fix doesn't actually address the cause of the issue. But it will ensure everyboot scripts only run everyboot, no matter how many times you execute /usr/lib/inithooks/run.