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

fb_helpers_reboot lies about :now #156

Open
jaymzh opened this issue Nov 3, 2020 · 2 comments
Open

fb_helpers_reboot lies about :now #156

jaymzh opened this issue Nov 3, 2020 · 2 comments

Comments

@jaymzh
Copy link
Collaborator

jaymzh commented Nov 3, 2020

:now is suppsoed to reboot now (if allowed). But it has an undocumented FB-ism, that if you're in firstboot, it switches to managed reboots:

action :now do
  # TODO (t15830562) - this action should observe required and override the
  # same way as the :deferred action
  if node['fb_helpers']['reboot_allowed']
    if node.firstboot_any_phase?
      set_reboot_override('immediate')
      do_managed_reboot
    else

That's... not cool.

@malmond77
Copy link
Contributor

I expect this is useful, so my first instinct is to document the behaviour. I'm not sure what you want here - do you want it documented, or do you want this to work differently - and if so, how?

@jaymzh
Copy link
Collaborator Author

jaymzh commented Nov 3, 2020

I want :now to be :now, and :managed_now to be :managed_now.

If I say "Reboot now" I mean "reboot now". THere's already an option for managed. :now should not be managed, it should be reboot.

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

No branches or pull requests

2 participants