Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JedMeister opened this issue Nov 12, 2024 · 3 comments · May be fixed by turnkeylinux/inithooks#59

Comments

@JedMeister
Copy link
Member

JedMeister commented Nov 12, 2024

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
Copy link
Member Author

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

@OnGle
Copy link
Member

OnGle commented Nov 25, 2024

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 OnGle linked a pull request Dec 5, 2024 that will close this issue
@OnGle
Copy link
Member

OnGle commented Dec 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants