From c4e51f8f98ff38482d08fef029baad6aee2f4e11 Mon Sep 17 00:00:00 2001 From: chiourung_huang Date: Mon, 7 Oct 2024 08:23:02 +0000 Subject: [PATCH] Stop platform monitor service before fast/warm reboot Root Cause: Access i2c bus when fast/warm reboot would cause SMBus is busy and needs recover by power cycle. Solution: Stop platform monitor service before fast/warm reboot --- scripts/fast-reboot | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 922d217e..8baa2cdf 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -783,6 +783,13 @@ then systemctl stop "$service_name" fi +# Stop platform monitor sevice to prevent i2c access during warm/fast reboot +services=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep platform-monitor | cut -f 1 -d' ') +for service_name in $services +do + systemctl stop "$service_name" +done + # Update the reboot cause file to reflect that user issued this script # Upon next boot, the contents of this file will be used to determine the # cause of the previous reboot