quattor / aii

Automated Installation Infrastructure
www.quattor.org
Apache License 2.0
7 stars 16 forks source link

Run ks-post-reboot as an offline update service #298

Closed gombasg closed 5 years ago

gombasg commented 6 years ago

This PR extends #297 with just one commit, but since I cannot easily test this change outside of our environment, I've decided to open a new PR for it.

Background: installing some services, like AFS, or kernel modules which require a kernel newer than what is used by the installer, require doing a reboot after ks-post-reboot - meaning two reboots overall. For many years now, we saved a reboot by running /etc/rc.d/init.d/ks-post-reboot inside the %post script. This mostly worked well until RH6, but systemd is no longer happy to run in a chroot (which is still not critical even if generates some noise), and we'd like to converge to the upstream code. Running ks-post-reboot as an offline update service means normal services are not started, so will not get confused by running on a half-configured/half-working system. The downside is less visibility into the initial configuration process, which can be mitigated by enabling AII remote logging.

stdweird commented 6 years ago

@gombasg very minor remark; i'm going to give this a try in short while.

stdweird commented 6 years ago

@gombasg i tested this and it works, i'll review the code again later, but i don't expect any issues