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

qubes_setupdvm: display progress via plymouth #81

Closed
marmarek opened this Issue Mar 8, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 24 Jan 2011 10:13 UTC
When qubes_setupdvm detects that Disposable VM savefile is out of date (or doesn't exist) it attempts to create one. This operation takes significant amount of time (currently 120s). We should somehow indicate to the user that the system it busy, preferably via plymouth progress indicator (so, when we execute qubes_setupdvm, plymouth indicator should be far from 100%).

Migrated-From: https://wiki.qubes-os.org/ticket/81

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by smoku on 14 Mar 2011 19:29 UTC

Member

marmarek commented Mar 8, 2015

Modified by smoku on 14 Mar 2011 19:29 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by smoku on 23 Mar 2011 20:33 UTC
It's a bit hard to do using Plymouth (and possibly using any other progress indicator). The problem is that we don't know at the beginning of the boot how long will it take, so it's hard to display uniform progress during.
Plymouth "solves" it the way MacOS X does it. Measures the boot time and steps at a boot and then on the next boot it interpolates to fit the previous boot.

I modified the qubes_setupdvm init script to pause the progress for the period the DVM is recreated and display a message saying what it is doing. The progress indicator pauses before reaching 100% and waits for DVM recreation.
http://git.qubes-os.org/?p=smoku/core;a=commitdiff;h=648f8be0b3fd0713df3a6bd8cf9c13ca4ec0fd41

Unfortunately it looks there is a bug in Plymouth and the message does not appear. While testing manually it works just fine but not during boot.
Strangely if I replace the empty (clear) message displayed after dvm recreate it is being displayed. 8-o

Anyway, I lost enough time trying to get it working, so I'm moving on.
Let's hope the F14 upgrade will fix this problem.

Member

marmarek commented Mar 8, 2015

Comment by smoku on 23 Mar 2011 20:33 UTC
It's a bit hard to do using Plymouth (and possibly using any other progress indicator). The problem is that we don't know at the beginning of the boot how long will it take, so it's hard to display uniform progress during.
Plymouth "solves" it the way MacOS X does it. Measures the boot time and steps at a boot and then on the next boot it interpolates to fit the previous boot.

I modified the qubes_setupdvm init script to pause the progress for the period the DVM is recreated and display a message saying what it is doing. The progress indicator pauses before reaching 100% and waits for DVM recreation.
http://git.qubes-os.org/?p=smoku/core;a=commitdiff;h=648f8be0b3fd0713df3a6bd8cf9c13ca4ec0fd41

Unfortunately it looks there is a bug in Plymouth and the message does not appear. While testing manually it works just fine but not during boot.
Strangely if I replace the empty (clear) message displayed after dvm recreate it is being displayed. 8-o

Anyway, I lost enough time trying to get it working, so I'm moving on.
Let's hope the F14 upgrade will fix this problem.

@marmarek marmarek closed this Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by smoku on 23 Mar 2011 20:36 UTC
Ticket #125 tracks the message problem.

Member

marmarek commented Mar 8, 2015

Comment by smoku on 23 Mar 2011 20:36 UTC
Ticket #125 tracks the message problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment