summaryrefslogtreecommitdiff
path: root/src/systemd-analyze
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd-analyze')
-rwxr-xr-xsrc/systemd-analyze4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd-analyze b/src/systemd-analyze
index 8148bfb832..a49fbb7eb0 100755
--- a/src/systemd-analyze
+++ b/src/systemd-analyze
@@ -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