mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
analyze: Cosmetic exit when the bootup is not yet complete when plotting.
This is just a nicer message than a python traceback.
This commit is contained in:
parent
6008900425
commit
6070fe66ac
@ -31,6 +31,10 @@ def acquire_start_time():
|
||||
startup_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'StartupTimestampMonotonic'))
|
||||
finish_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'FinishTimestampMonotonic'))
|
||||
|
||||
if finish_time == 0:
|
||||
sys.stderr.write("Bootup is not yet finished. Please try again later.\n")
|
||||
sys.exit(1)
|
||||
|
||||
assert initrd_time <= startup_time
|
||||
assert startup_time <= finish_time
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user