foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Fixes #35379 - Kickstart callback home in the first boot service

Open stejskalleos opened this issue 3 weeks ago • 2 comments

Follow up to https://github.com/theforeman/foreman/pull/9677 (credits @Dyrkon )

Move the callback home with the facts update to the first boot service.

  • The callback now really means done & running.
  • Subscription manager reports facts from the running system

Tested with CentOS Stream 10

stejskalleos avatar Nov 28 '25 12:11 stejskalleos

wouldn't it stay in a boot loop because the boot config would stay to boot from network and not start from disk? This is actually the case from SLES for example if the "built" callback will not run after the host installation. foreman need to put the host out of the build mode.

actually, I would prefer to have a second stage:

  • built => change the boot order so that the host boot from disk instead of starting the network installation
  • initialized => now the host is really up => e.g. remove the puppet "autoaccept CSR"

sbernhard avatar Dec 05 '25 23:12 sbernhard

The first_boot_script.sh file contains the Foreman orchestration URL, which includes the JWT, should we keep that on the disk or setup systemd to self-destruct it after the first boot service

Yes, deleting the file is a good idea.

wouldn't it stay in a boot loop because the boot config would stay to boot from network and not start from disk?

Hmm, you are right, wondering why my setup didn't stay in the loop.

stejskalleos avatar Dec 08 '25 09:12 stejskalleos