colmena icon indicating copy to clipboard operation
colmena copied to clipboard

Rebooting should not activate then reboot

Open grahamc opened this issue 1 year ago • 1 comments

#46 was closed by 1be16d552d99c772b0bbf7e98b541244f618206d which added a --reboot flag which activates the new config, then issues the reboot. I believe it would be better to reboot and not activate at all. Then, once it is up, upload keys.

In my case I have software whose userland programs bind closely to an API in the kernel module. If these two get out of sync, it could cause problems. This could be troublesome if a new version's activation is run.

grahamc avatar Jul 25 '22 01:07 grahamc

Does colmena apply --reboot boot not already do what you want? I suppose the one missing piece is that post-activation key upload should take place after the reboot and not before it.

lheckemann avatar Jul 26 '22 08:07 lheckemann

FWIW, I also expected the --reboot flag to push the new config, and then reboot into it, and would not switch to the new config prior to rebooting. https://wikipedia.org/wiki/Principle_of_least_astonishment

It seems to me like --reboot should change the default action to boot and then anyone who actually needs the current behavior can do so with colmena apply --reboot switch

buckley310 avatar Aug 31 '22 15:08 buckley310

Sorry, I forgot about this issue. Let's make the default goal of colmena apply be boot if --reboot is specified, and move the upload of post-activation keys after the reboot.

zhaofengli avatar Sep 02 '22 00:09 zhaofengli