tracker icon indicating copy to clipboard operation
tracker copied to clipboard

AWS builds appears to rerun "everyboot" inithooks over and over?! Not just at boot...

Open JedMeister opened this issue 1 year ago • 3 comments

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.

JedMeister avatar Nov 12 '24 06:11 JedMeister

@OnGle noted offline that he hasn't yet been able to reproduce this!?

JedMeister avatar Nov 22 '24 06:11 JedMeister

Issue is:

  1. Our login wrapper runs: a. inithooks b. confconsole c. prints motd d. login
  2. Confconsole is not run on AWS
  3. Login will exit after 1 minute IDLE
  4. Getty will restart the process for a given TTY when it exits.

OnGle avatar Nov 25 '24 23:11 OnGle

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.

OnGle avatar Dec 05 '24 04:12 OnGle