We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a630bb commit ef86b53Copy full SHA for ef86b53
scripts/determine-reboot-cause
@@ -184,7 +184,7 @@ def determine_reboot_cause():
184
# the software_reboot_cause will be treated as the reboot cause if it's not unknown
185
# otherwise, the cmdline_reboot_cause will be treated as the reboot cause if it's not none
186
# Else the software_reboot_cause will be treated as the reboot cause
187
- if not hardware_reboot_cause.startswith(REBOOT_CAUSE_NON_HARDWARE):
+ if REBOOT_CAUSE_NON_HARDWARE not in hardware_reboot_cause:
188
previous_reboot_cause = hardware_reboot_cause
189
# Check if any software reboot was issued before this hardware reboot happened
190
if software_reboot_cause is not REBOOT_CAUSE_UNKNOWN:
0 commit comments