-
Notifications
You must be signed in to change notification settings - Fork 90
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
Superman 5.0.0 running update before user gets opportunity to log in #249
Comments
Indeed... This would need to be a new feature to NOT do that since a lot of folks (in shared lab situtations) expcect |
Thanks Kevin, Yes, I want to take advantage of this "No GUI user currently logged in" for our labs. But for other people, it seems like super is too fast. This is your baby but here's some suggestions:
I know you have a way bigger idea of how things work so as I said, just suggestions. |
No plans to move to an agent b/c that could cause a cascade of issues. That being said, I do plan to implement features that allows for control of |
We have seen this in our environment too. I understand that super sees that the user is not logged in and that starting the update flow is the correct logic but... I also think that the flow restarting a device with no warning to a user should not happen. The improvements to the user experience and notification from super are one of the key things about it to me! |
We experienced the same in our environment. As a workaround i have now modified the super-starter script to add a customizable delay after boot and just exit 0 when we are not past this delay. I guess 900 seconds (the value i chose) should be sufficient for everyone to sign in. Of course i actually modified the super script (which writes the super-starter script). This is a quick solution and may be implemented more elegant (e.g. call it by parameter). Here is a diff output (includes some timeouts i modified too):
|
Hey @sch4llfl3g3l that looks like a better idea than what I was thinking of. Looks like you put the block:
about line 3565 at the start of the super-starter script inside the super script - yes? Also the block:
is around line 14 in super I'll give this a go and see if I get any issues |
line 3565 is correct (that makes it the first condition to be checked). Take care of the escaping backslashes when copying the code. You can add a line with an echo message to a file in /tmp above the "exit 0", for debugging purposes. |
It looks to be working for me. The 15 minutes delay from startup seems like a reasonable time too. I actually think this is a good compromise with how Kevin designed it. However, knowing the tight windows people have with labs sometimes, I think a way of turning this on via a config profile or startup settings would be needed for wider use. |
Hi
First - I really, really like this project - thank you.
I had two test users report that with Superman 5.0.0 their machines restarted shortly after they started up in the morning and installed the just released update with no chance of deferral. Both users reported that they logged on as soon as the machines came up but when I look in the super.log file I see this kind of entry
Tue Oct 29 08:22:42 dep69226 super[435]: Status: No GUI user currently logged in.
I got them to run "last" to try and figure out timing
So if I'm reading this correctly, the machine started at 8:22, super started doing stuff at 8:22:42 and then the user logged in at 8:23. Super is just too darn quick!
Is there a way to disable super from doing anything when nobody is logged in? With people being mobile so much they frequently shut down. There was apparently no pop up to allow deferral but I can see that was because this started when super decided nobody was logged in.
I'm just trying to avoid somebody getting an update like this and they are just launching into a presentation. The big feature for me is the ability to defer for a set number of days but it seems like there is a small window where super can just bypass everything. I appreciate that in some cases you want super to install when nobody is logged in - I have labs where that's my plan but in the scenario above even if it waited for a set time to make sure someone wasn't just booting, it would be helpful
2024-10-29_dep69226_super.log
dep69226_last.txt
The text was updated successfully, but these errors were encountered: